{"id":15549278,"url":"https://github.com/adityaoberai/rickroll-appwritefunction","last_synced_at":"2025-03-27T06:31:03.715Z","repository":{"id":114528913,"uuid":"501592075","full_name":"adityaoberai/RickRoll-AppwriteFunction","owner":"adityaoberai","description":"Appwrite Cloud Function that rick rolls a person on phone call via Twilio","archived":false,"fork":false,"pushed_at":"2022-06-09T18:11:48.000Z","size":4,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T05:51:07.812Z","etag":null,"topics":["appwrite","appwrite-function","dotnet","twilio","twilio-voice"],"latest_commit_sha":null,"homepage":"https://dev.to/adityaoberai/rick-roll-your-friends-using-appwrite-twilio-and-net-4180","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adityaoberai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-09T09:41:47.000Z","updated_at":"2023-11-17T12:36:40.000Z","dependencies_parsed_at":"2023-06-08T18:30:19.771Z","dependency_job_id":null,"html_url":"https://github.com/adityaoberai/RickRoll-AppwriteFunction","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaoberai%2FRickRoll-AppwriteFunction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaoberai%2FRickRoll-AppwriteFunction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaoberai%2FRickRoll-AppwriteFunction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaoberai%2FRickRoll-AppwriteFunction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adityaoberai","download_url":"https://codeload.github.com/adityaoberai/RickRoll-AppwriteFunction/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245797373,"owners_count":20673839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["appwrite","appwrite-function","dotnet","twilio","twilio-voice"],"created_at":"2024-10-02T13:33:33.443Z","updated_at":"2025-03-27T06:31:03.710Z","avatar_url":"https://github.com/adityaoberai.png","language":"C#","readme":"# 📲 Rick Roll Someone with Appwrite, Twilio, and .NET 6.0\n\n## 🤖 Documentation\n\n[Appwrite](https://appwrite.io) Cloud Function that [rick rolls](https://www.youtube.com/watch?v=dQw4w9WgXcQ\u0026ab_channel=RickAstley) a person on phone call via [Twilio](https://www.twilio.com/referral/zigWwk).\n\n_Example input:_\n\nThis function expects a phone number in the payload in the following format: `+[Country Code][Phone Number]`\n\nHere's an example JSON input:\n\n```json\n{\n    \"phoneNumber\": \"+919876543210\"\n}\n```\n\n_Example output:_\n\n```json\n{\n\t\"twilioResponse\": {\n\t\t\"Sid\": \"CA83758d533c786be5bcf82e34b94cc8b5\",\n\t\t\"DateCreated\": null,\n\t\t\"DateUpdated\": null,\n\t\t\"ParentCallSid\": null,\n\t\t\"AccountSid\": \"ACe29c144db149972dbf5427bbdd0c16dd\",\n\t\t\"To\": \"\\u002B919876543210\",\n\t\t\"ToFormatted\": \"\\u002B919876543210\",\n\t\t\"From\": \"\\u002B12184232045\",\n\t\t\"FromFormatted\": \"(218) 423-2045\",\n\t\t\"PhoneNumberSid\": \"PN671d012061f32085fcd63b046f23826f\",\n\t\t\"Status\": {},\n\t\t\"StartTime\": null,\n\t\t\"EndTime\": null,\n\t\t\"Duration\": null,\n\t\t\"Price\": null,\n\t\t\"PriceUnit\": \"USD\",\n\t\t\"Direction\": \"outbound-api\",\n\t\t\"AnsweredBy\": null,\n\t\t\"ApiVersion\": \"2010-04-01\",\n\t\t\"ForwardedFrom\": null,\n\t\t\"GroupSid\": null,\n\t\t\"CallerName\": null,\n\t\t\"QueueTime\": \"0\",\n\t\t\"TrunkSid\": null,\n\t\t\"Uri\": \"/2010-04-01/Accounts/ACe29c144db149972dbf5427bbdd0c16dd/Calls/CA83758d533c786be5bcf82e34b94cc8b5.json\",\n\t\t\"SubresourceUris\": {\n\t\t\t\"feedback\": \"/2010-04-01/Accounts/ACe29c144db149972dbf5427bbdd0c16dd/Calls/CA83758d533c786be5bcf82e34b94cc8b5/Feedback.json\",\n\t\t\t\"notifications\": \"/2010-04-01/Accounts/ACe29c144db149972dbf5427bbdd0c16dd/Calls/CA83758d533c786be5bcf82e34b94cc8b5/Notifications.json\",\n\t\t\t\"recordings\": \"/2010-04-01/Accounts/ACe29c144db149972dbf5427bbdd0c16dd/Calls/CA83758d533c786be5bcf82e34b94cc8b5/Recordings.json\",\n\t\t\t\"streams\": \"/2010-04-01/Accounts/ACe29c144db149972dbf5427bbdd0c16dd/Calls/CA83758d533c786be5bcf82e34b94cc8b5/Streams.json\",\n\t\t\t\"payments\": \"/2010-04-01/Accounts/ACe29c144db149972dbf5427bbdd0c16dd/Calls/CA83758d533c786be5bcf82e34b94cc8b5/Payments.json\",\n\t\t\t\"siprec\": \"/2010-04-01/Accounts/ACe29c144db149972dbf5427bbdd0c16dd/Calls/CA83758d533c786be5bcf82e34b94cc8b5/Siprec.json\",\n\t\t\t\"events\": \"/2010-04-01/Accounts/ACe29c144db149972dbf5427bbdd0c16dd/Calls/CA83758d533c786be5bcf82e34b94cc8b5/Events.json\",\n\t\t\t\"feedback_summaries\": \"/2010-04-01/Accounts/ACe29c144db149972dbf5427bbdd0c16dd/Calls/FeedbackSummary.json\"\n\t\t}\n\t}\n}\n```\n\n## 📝 Environment Variables\n\nGo to Settings tab of your Cloud Function and add the following environment variables:\n\n- `TWILIO_ACCOUNTSID`: Twilio Account SID\n- `TWILIO_AUTHTOKEN`: Twilio Auth Token\n- `TWILIO_PHONENUMBER`: Twilio Phone Number to make the call from\n\n\u003e ℹ️ _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)._\n\n## 🚀 Deployment\n\nThere are two ways of deploying the Appwrite function, both having the same results, but each using a different process. We highly recommend using CLI deployment to achieve the best experience.\n\n### Using CLI\n\nMake sure you have [Appwrite CLI](https://appwrite.io/docs/command-line#installation) installed, and you have successfully logged into your Appwrite server. To make sure Appwrite CLI is ready, you can use the command `appwrite client --debug` and it should respond with green text `✓ Success`.\n\nMake sure you are in the same folder as your `appwrite.json` file and run `appwrite deploy function` to deploy your function. You will be prompted to select which functions you want to deploy.\n\n### Manual using tar.gz\n\nManual deployment has no requirements and uses Appwrite Console to deploy the tag. First, enter the folder of your function. Then, create a tarball of the whole folder and gzip it. After creating `.tar.gz` file, visit Appwrite Console, click on the `Deploy Tag` button and switch to the `Manual` tab. There, set the `entrypoint` to `src/Index.cs`, and upload the file we just generated.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityaoberai%2Frickroll-appwritefunction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadityaoberai%2Frickroll-appwritefunction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityaoberai%2Frickroll-appwritefunction/lists"}