Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adityaoberai/rickroll-appwrite-node
Appwrite function to rickroll a person using Twilio
https://github.com/adityaoberai/rickroll-appwrite-node
appwrite appwrite-function javascript node-js twilio twilio-voice
Last synced: 7 days ago
JSON representation
Appwrite function to rickroll a person using Twilio
- Host: GitHub
- URL: https://github.com/adityaoberai/rickroll-appwrite-node
- Owner: adityaoberai
- License: mit
- Created: 2023-09-28T13:52:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-06T12:49:01.000Z (about 1 year ago)
- Last Synced: 2024-10-30T12:07:11.260Z (about 2 months ago)
- Topics: appwrite, appwrite-function, javascript, node-js, twilio, twilio-voice
- Language: HTML
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ⚡ Rick Roll Function
A function that uses Twilio to call a person and rick roll them.
## 🧰 Usage
### GET /
- HTML form for interacting with the function.
### POST, PUT, PATCH, DELETE /
- Makes a call using Twilio to the inputted phone number
**Parameters**
| Name | Description | Location | Type | Sample Value |
| ----------------- | ------------------------------------ | -------- | ------------------ | ----------------------------- |
| Content-Type | The content type of the request body | Header | `application/json` | N/A |
| phoneNumber | Phone number of person to prank | Body | String | `+919876543210` |**Request**
```json
{
"phoneNumber": "+919876543210"
}
```**Response**
Sample `200` Response:
```json
{
"ok": true,
"message": "Prank successful!"
}
```## ⚙️ Configuration
| Setting | Value |
|-------------------|---------------|
| Runtime | Node (18.0) |
| Entrypoint | `src/main.js` |
| Build Commands | `npm install` |
| Permissions | `any` |
| Timeout (Seconds) | 15 |## 🔒 Environment Variables
### TWILIO_ACCOUNT_SID
The Account Sid provided by Twilio to identify your Twilio account when using their API.
| Question | Answer |
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| Required | Yes |
| Sample Value | `ACc6a5...09d` |
| Documentation | [Twilio Support](https://support.twilio.com/hc/en-us/articles/14726256820123-What-is-a-Twilio-Account-SID-and-where-can-I-find-it-) |### TWILIO_AUTH_TOKEN
The Authorization Token provided by Twilio to authenticate your Twilio account when using their API.
| Question | Answer |
| ------------- | ----------------------------------------------------------------------------------------------------------- |
| Required | Yes |
| Sample Value | `d65g4...8d37` |
| Documentation | [Twilio Support](https://support.twilio.com/hc/en-us/articles/223136027-Auth-Tokens-and-How-to-Change-Them) |### TWILIO_PHONE_NUMBER
The Phone Number obtained through Twilio to make phone calls via Twilio Programmable Voice.
| Question | Answer |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| Required | Yes |
| Sample Value | `+12345678901` |
| Documentation | [Twilio Support](https://support.twilio.com/hc/en-us/articles/223135247-How-to-Search-for-and-Buy-a-Twilio-Phone-Number-from-Console) |