{"id":23968971,"url":"https://github.com/joequery/simple-twilio-sms","last_synced_at":"2025-06-20T14:34:57.356Z","repository":{"id":21796961,"uuid":"25119482","full_name":"joequery/Simple-Twilio-SMS","owner":"joequery","description":"A simple Flask app for sending text messages via Twilio","archived":false,"fork":false,"pushed_at":"2014-10-12T13:02:49.000Z","size":116,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T14:48:07.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/joequery.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}},"created_at":"2014-10-12T13:01:29.000Z","updated_at":"2024-08-16T20:00:12.000Z","dependencies_parsed_at":"2022-08-19T22:02:22.737Z","dependency_job_id":null,"html_url":"https://github.com/joequery/Simple-Twilio-SMS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joequery/Simple-Twilio-SMS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joequery%2FSimple-Twilio-SMS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joequery%2FSimple-Twilio-SMS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joequery%2FSimple-Twilio-SMS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joequery%2FSimple-Twilio-SMS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joequery","download_url":"https://codeload.github.com/joequery/Simple-Twilio-SMS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joequery%2FSimple-Twilio-SMS/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260962124,"owners_count":23089357,"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":"2025-01-07T00:56:59.692Z","updated_at":"2025-06-20T14:34:52.344Z","avatar_url":"https://github.com/joequery.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple Twilio SMS endpoint\n==========================\n\nThis is a simple flask app for sending text messages.\n\nSetup\n-----\n\nStep 1. Create a virtualenv and install the requirements.\n\nStep 2. Copy `twilio_settings.sample.py` to `twilio_settings.py`\n\nStep 3. Edit the values in `twilio_settings.py` to match your Twilio account\ncredentials.\n\nStep 4. Run the `twilio-sms.py` file\n\nUsage\n-----\n\nAn endpoint is setup at '/sms'. Send a POST request with header\n`Content-Type: application/json`. The POST data should be in the form\n\n    {\n        'to': '5555555555',\n        'body': 'This is the text message!'\n    }\n\nor\n\n    {\n        'to': ['5555555555'],\n        'body': 'This is the text message sent to multiple numbers!'\n    }\nor\n\n    {\n        'to': ['5555555555', '9999999999'],\n        'body': 'This is the text message sent to multiple numbers!'\n    }\n\n### Restricting access\n\nIf you do not want your sms endpoint accessible to everyone, you can alter the\n`ACCESS_TOKEN` variable in `twilio_settings.py` to be a random string. The\nclient sending the POST request should include `access_token` in their data, and\nthe value should match what you assigned to `ACCESS_TOKEN`. For example,\n\n\n    {\n        'to': ['5555555555', '9999999999'],\n        'body': 'This is the text message sent to multiple numbers!',\n        'access_token': 'SomeRandomString'\n    }\n\n### Example request\n\nSuppose you're using the requests library:\n\n```python\nimport requests\nimport json\n\nurl = \"http://localhost:5000/sms\"\ndata = {\n    'to': ['5555555555'],\n    'body': 'This is the text message'\n}\nheaders = {'Content-type': 'application/json'}\nr = requests.post(url, data=json.dumps(data), headers=headers)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoequery%2Fsimple-twilio-sms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoequery%2Fsimple-twilio-sms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoequery%2Fsimple-twilio-sms/lists"}