Skip to content

Commit 01777a7

Browse files
Merge pull request #83 from Chuhaa/master
Update documents
2 parents 85d5f88 + 20f8a24 commit 01777a7

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

Module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ gmail:Client gmailClient = new (gmailConfig);
5050

5151
```ballerina
5252
import ballerina/io;
53-
import ballerinax/googleapis.gmail;
53+
import ballerinax/googleapis_gmail as gmail;
5454
5555
gmail:GmailConfiguration gmailConfig = {
5656
oauthClientConfig: {

Package.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ gmail:Client gmailClient = new (gmailConfig);
5050

5151
```ballerina
5252
import ballerina/io;
53-
import ballerinax/googleapis.gmail;
53+
import ballerinax/googleapis_gmail as gmail;
5454
5555
gmail:GmailConfiguration gmailConfig = {
5656
oauthClientConfig: {

Readme.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,38 +23,38 @@ The following sections provide you with information on how to use the Ballerina
2323

2424
#### Working with Emails
2525

26-
The `ballerinax/googleapis.gmail` module contains operations to send emails in Text and HTML formats with
26+
The `ballerinax/googleapis_gmail` module contains operations to send emails in Text and HTML formats with
2727
attachments and inline images. It supports searching and reading emails in Gmail using Gmail filters. The module
2828
also supports trashing, untrashing, deleting, and modifying emails.
2929

3030
#### Working with Threads
3131

32-
The `ballerinax/googleapis.gmail` module contains operations to read, search, trash, untrash, modify and delete
32+
The `ballerinax/googleapis_gmail` module contains operations to read, search, trash, untrash, modify and delete
3333
email threads in Gmail.
3434

3535
#### Working with Drafts
3636

37-
The `ballerinax/googleapis.gmail` module contains operations to search, read, delete, create, update and send
37+
The `ballerinax/googleapis_gmail` module contains operations to search, read, delete, create, update and send
3838
drafts in Gmail.
3939

4040
#### Working with Labels
4141

42-
The `ballerinax/googleapis.gmail` module contains operations to list, read, create, update and delete labels in Gmail.
42+
The `ballerinax/googleapis_gmail` module contains operations to list, read, create, update and delete labels in Gmail.
4343

4444
#### Working with User Profiles
4545

46-
The `ballerinax/googleapis.gmail` module contains operations to get Gmail user profile details.
46+
The `ballerinax/googleapis_gmail` module contains operations to get Gmail user profile details.
4747

4848
#### Working with Mailbox History
4949

50-
The `ballerinax/googleapis.gmail` module contains operations to lists the history of changes to the user's mailbox.
50+
The `ballerinax/googleapis_gmail` module contains operations to lists the history of changes to the user's mailbox.
5151

5252
## Getting Started
5353

5454
## Sample
55-
First, import the `ballerinax/googleapis.gmail` module into the Ballerina project.
55+
First, import the `ballerinax/googleapis_gmail` module into the Ballerina project.
5656
```ballerina
57-
import ballerinax/googleapis.gmail;
57+
import ballerinax/googleapis_gmail;
5858
```
5959
Instantiate the connector by giving authentication details in the Gmail client config, which has built-in support
6060
for OAuth 2.0. Gmail uses OAuth 2.0 to authenticate and authorize requests. The Gmail connector can be minimally

gmail_constants.bal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,4 @@ public const string TEXT_PLAIN = "text/plain";
190190
public const string TEXT_HTML = "text/html";
191191

192192
// Error Codes
193-
const string GMAIL_ERROR_CODE = "(ballerinax/googleapis.gmail)GmailError";
193+
const string GMAIL_ERROR_CODE = "(ballerinax/googleapis_gmail)GmailError";

0 commit comments

Comments
 (0)