-
Notifications
You must be signed in to change notification settings - Fork 43
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 #238 from SachinAkash01/api-key-auth
Add API Key Based Authentication for Ballerina Twilio Connector
- Loading branch information
Showing
25 changed files
with
195 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
[package] | ||
distribution = "2201.8.0" | ||
distribution = "2201.10.0" | ||
org = "ballerinax" | ||
name = "twilio" | ||
version = "4.0.1" | ||
version = "5.0.0" | ||
authors = ["Ballerina"] | ||
repository = "https://github.com/ballerina-platform/module-ballerinax-twilio" | ||
keywords = ["Communication/Call & SMS", "Cost/Paid"] | ||
icon = "icon.png" | ||
license = ["Apache-2.0"] | ||
|
||
[build-options] | ||
observabilityIncluded = false | ||
observabilityIncluded = true |
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
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
26 changes: 26 additions & 0 deletions
26
examples/authentication/api-key-auth/API key authentication.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,26 @@ | ||
# API Key Based Authentication in Ballerina Twilio Connector | ||
|
||
This example demonstrates how to authenticate your requests to Twilio Account using API Key based authentication in Ballerina Twilio Connector. | ||
|
||
## Prerequisites | ||
|
||
### 1. Set up | ||
Refer to the setup guide in [ReadMe](../../../README.md) for necessary credentials. | ||
|
||
### 2. Configuration | ||
|
||
Configure Twilio API credentials in `Config.toml` in the example directory: | ||
|
||
```toml | ||
API_KEY="<API Key>" | ||
API_SECRET="<API Secret>" | ||
ACCOUNT_SID="<Account Sid>" | ||
``` | ||
|
||
## 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,8 @@ | ||
[package] | ||
org = "twilio_samples" | ||
name = "api_key_auth" | ||
version = "0.1.0" | ||
distribution = "2201.10.1" | ||
|
||
[build-options] | ||
observabilityIncluded = true |
Oops, something went wrong.