-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #263 from ballerina-platform/dev
Tweak documentation
- Loading branch information
Showing
14 changed files
with
153 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../Process customer feedback emails.md |
29 changes: 29 additions & 0 deletions
29
examples/process-mails/Process customer feedback emails.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Process customer feedback emails | ||
|
||
This example demonstrates how to efficiently manage customer feedback emails. The Ballerina programme retrieves unread messages from the INBOX, extracts sender and subject information, and stores it in a CSV file for later access. | ||
|
||
## Prerequisites | ||
|
||
### 1. Set up Gmail API | ||
|
||
Refer to the [Set up Guide](https://central.ballerina.io/ballerinax/googleapis.gmail/latest#set-up-guide) for necessary credentials (client ID, secret, tokens). | ||
|
||
### 2. Configuration | ||
|
||
Configure Gmail API credentials in `Config.toml` in the example directory: | ||
|
||
```toml | ||
refreshToken="<Refresh Token>" | ||
clientId="<Client Id>" | ||
clientSecret="<Client Secret>" | ||
``` | ||
|
||
## Run the Example | ||
|
||
Execute the following command to run the example: | ||
|
||
```bash | ||
bal run | ||
``` | ||
|
||
Check the results in the generated `feedback.csv` file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../Automated Email Responses.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Automated Email Responses | ||
|
||
This example demonstrates the automated retrieval of unread emails from the Inbox and the subsequent sending of personalized responses. | ||
|
||
## Prerequisites | ||
|
||
### 1. Set up Gmail API | ||
|
||
Refer to the [Set up Guide](https://central.ballerina.io/ballerinax/googleapis.gmail/latest#set-up-guide) for necessary credentials (client ID, secret, tokens). | ||
|
||
### 2. Configuration | ||
|
||
Configure Gmail API credentials in `Config.toml` in the example directory: | ||
|
||
```toml | ||
refreshToken="<Refresh Token>" | ||
clientId="<Client Id>" | ||
clientSecret="<Client Secret>" | ||
``` | ||
|
||
## Run the Example | ||
|
||
Execute the following command to run the example: | ||
|
||
```bash | ||
bal run | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../Email Thread Search.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Email thread search | ||
|
||
This example showcases an efficient method to search for email threads based on a specified query. The code extracts and displays the subject and snippet of the first message in each relevant thread for streamlined information retrieval. | ||
|
||
## Prerequisites | ||
|
||
### 1. Set up Gmail API | ||
|
||
Refer to the [Set up Guide](https://central.ballerina.io/ballerinax/googleapis.gmail/latest#set-up-guide) for necessary credentials (client ID, secret, tokens). | ||
|
||
### 2. Configuration | ||
|
||
Configure Gmail API credentials in `Config.toml` in the example directory: | ||
|
||
```toml | ||
refreshToken="<Refresh Token>" | ||
clientId="<Client Id>" | ||
clientSecret="<Client Secret>" | ||
``` | ||
|
||
## Run the Example | ||
|
||
Execute the following command to run the example: | ||
|
||
```bash | ||
bal run | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../Send Maintenance Break Emails.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Send maintenance break emails | ||
|
||
This example demonstrates the automated sending of emails for scheduled maintenance breaks. | ||
|
||
## Prerequisites | ||
|
||
### 1. Set up Gmail API | ||
|
||
Refer to the [Set up Guide](https://central.ballerina.io/ballerinax/googleapis.gmail/latest#set-up-guide) for necessary credentials (client ID, secret, tokens). | ||
|
||
### 2. Configuration | ||
|
||
Configure Gmail API credentials in `Config.toml` in the example directory: | ||
|
||
```toml | ||
refreshToken="<Refresh Token>" | ||
clientId="<Client Id>" | ||
clientSecret="<Client Secret>" | ||
recipient="<Recipient Email Address>" | ||
``` | ||
|
||
## Run the Example | ||
|
||
Execute the following command to run the example: | ||
|
||
```bash | ||
bal run | ||
``` |