{"id":19886005,"url":"https://github.com/rishabkumar7/twilio-azure-function-sms","last_synced_at":"2025-03-01T03:48:12.207Z","repository":{"id":233011092,"uuid":"785777065","full_name":"rishabkumar7/twilio-azure-function-sms","owner":"rishabkumar7","description":"An Azure Function that can send an SMS using Twilio using HTTP Trigger.","archived":false,"fork":false,"pushed_at":"2024-04-12T15:57:37.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-11T18:47:37.376Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/rishabkumar7.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":"2024-04-12T15:47:42.000Z","updated_at":"2024-04-12T15:49:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"bcbfb26a-3824-46af-8fa7-d1846b6d9934","html_url":"https://github.com/rishabkumar7/twilio-azure-function-sms","commit_stats":null,"previous_names":["rishabkumar7/twilio-azure-function-sms"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Ftwilio-azure-function-sms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Ftwilio-azure-function-sms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Ftwilio-azure-function-sms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Ftwilio-azure-function-sms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rishabkumar7","download_url":"https://codeload.github.com/rishabkumar7/twilio-azure-function-sms/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241313176,"owners_count":19942417,"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":[],"created_at":"2024-11-12T17:36:01.023Z","updated_at":"2025-03-01T03:48:12.190Z","avatar_url":"https://github.com/rishabkumar7.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twilio Azure Function\n\nThis project is an Azure Function that sends SMS messages using the Twilio API.\n\n## Prerequisites\n\n- Node.js and npm\n- Azure Functions Core Tools\n- An Azure account\n- A Twilio account\n\n## Setup\n\n1. Clone this repository.\n2. Run `npm install` to install the dependencies.\n3. Set up your Twilio account and get your Account SID, Auth Token, and a Twilio phone number.\n4. Update the `local.settings.json` file with your Twilio Account SID, Auth Token, and phone number.\n\n## Running the Function Locally\n\n1. Start the function with `npm start`.\n2. Send a POST request to `http://localhost:7071/api/SMSTrigger` with a JSON body containing `number` and `message` fields. For example:\n\n```json\n{\n  \"number\": \"\u003cYOUR_PHONE_NUMBER\u003e\",\n  \"message\": \"Ahoy, world!\"\n}\n```\n\ncurl request example:\n\n``` bash\ncurl -m 70 -X GET http://localhost:7071/api/SMSTrigger/ \\\n-H \"Content-Type: application/json\" \\\n-d '{\n  \"message\": \"Ahoy from Azure Functions.\",\n  \"number\": \"\u003cYOUR_PHONE_NUMBER\u003e\"\n}'\n```\n\n## Deploying to Azure\n\nRun the `twilio-azure-function-create.sh` script to create a new Azure Function App and associated resources.\n\nDeploy the function to Azure with `func azure functionapp publish \u003cFunctionAppName\u003e`, replacing `\u003cFunctionAppName\u003e` with the name of your Function App.\n\n## Author\n\n[Rishab Kumar](https://rishabkumar.com)\n\n- [Twitter](https://twitter.com/rishabincloud)\n- [GitHub](https://github.com/rishabkumar7)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishabkumar7%2Ftwilio-azure-function-sms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frishabkumar7%2Ftwilio-azure-function-sms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishabkumar7%2Ftwilio-azure-function-sms/lists"}