Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adityaoberai/samosachai.net-demofunction
Azure Function that rick rolls a person on phone call via Twilio
https://github.com/adityaoberai/samosachai.net-demofunction
Last synced: 6 days ago
JSON representation
Azure Function that rick rolls a person on phone call via Twilio
- Host: GitHub
- URL: https://github.com/adityaoberai/samosachai.net-demofunction
- Owner: adityaoberai
- Created: 2022-09-29T14:51:01.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-29T15:00:47.000Z (about 2 years ago)
- Last Synced: 2024-10-09T03:41:20.016Z (about 1 month ago)
- Language: C#
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SamosaChai.NET-DemoFunction
Azure Function that rick rolls a person on phone call via Twilio
_Example input:_
This function expects a phone number in the body of the POST request in the following format: `+[Country Code][Phone Number]`
Here's an example JSON POST body:
```json
{
"PhoneNumber": "+919876543210"
}
```_Example output:_
```json
CA490dc7a73d82e12ac0083b3d5f9ec27e
```This is the Call Sid generated
## đ Environment Variables
Go to Settings tab of your Cloud Function and add the following environment variables:
- `AccountSid`: Twilio Account SID
- `AuthToken`: Twilio Auth Token
- `FromNumber`: Twilio Phone Number to make the call from> âšī¸ _The Twilio Account SID and Auth Token can be obtained from your Twilio console. You can purchase a Twilio phone number using [this guide](https://support.twilio.com/hc/en-us/articles/223135247-How-to-Search-for-and-Buy-a-Twilio-Phone-Number-from-Console)._