{"id":13677468,"url":"https://github.com/chrisenytc/twilio","last_synced_at":"2025-04-29T11:30:59.435Z","repository":{"id":57550437,"uuid":"51428260","full_name":"chrisenytc/twilio","owner":"chrisenytc","description":"A golang package for the twilio cloud telephone service API","archived":true,"fork":false,"pushed_at":"2016-04-06T23:42:10.000Z","size":15,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-18T21:03:37.777Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chrisenytc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-10T08:09:22.000Z","updated_at":"2023-08-25T17:44:54.000Z","dependencies_parsed_at":"2022-08-29T20:41:11.801Z","dependency_job_id":null,"html_url":"https://github.com/chrisenytc/twilio","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/chrisenytc%2Ftwilio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisenytc%2Ftwilio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisenytc%2Ftwilio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisenytc%2Ftwilio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrisenytc","download_url":"https://codeload.github.com/chrisenytc/twilio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251493743,"owners_count":21598159,"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-08-02T13:00:42.694Z","updated_at":"2025-04-29T11:30:59.210Z","avatar_url":"https://github.com/chrisenytc.png","language":"Go","funding_links":[],"categories":["Wrappers and libraries"],"sub_categories":[],"readme":"# Twilio\n\n\u003e A golang package for the twilio www.twilio.com cloud telephone service API. This package supports initiating calls, sending SMS and generating TwiML.\n\n## Getting Started\n\n1º Install twilio\n\n```bash\n$ go get github.com/chrisenytc/twilio\n```\n\n## How to Use\n\nExample with Twilio Rest API:\n\n```go\npackage main\n\nimport (\n\t\t\"fmt\"\n\n        \"github.com/chrisenytc/twilio/twirest\"\n)\n\nfunc main() {\n        // Test account Sid/Token\n        accountSid := \"enter your account sid\"\n        authToken := \"enter your auth token\"\n\n        client := twirest.NewClient(accountSid, authToken)\n\n        msg := twirest.SendMessage{\n                Text: \"Hello monkey\",\n                To:   \"+15005550001\",\n                From: \"+15005550005\"}\n\n        resp, err := client.Request(msg)\n\n        if err != nil {\n                fmt.Println(err)\n                return\n        }\n\n        fmt.Println(resp.Message.Status)\n}\n```\n\nExample with TwiML:\n\n```go\npackage main\n\nimport (\n        \"net/http\"\n\n\t\t\"github.com/chrisenytc/twilio/twiml\"\n)\n\nfunc helloMonkey(w http.ResponseWriter, r *http.Request) {\n\n        callers := map[string]string{\"+15005550001\": \"Langur\"}\n\n        resp := twiml.NewResponse()\n\n        r.ParseForm()\n        from := r.Form.Get(\"From\")\n        caller, ok := callers[from]\n\n        msg := \"Hello monkey\"\n\n        if ok {\n                msg = \"Hello \" + caller\n        }\n\n        resp.Action(twiml.Say{Text: msg},\n                twiml.Play{Url: \"http://demo.twilio.com/hellomonkey/monkey.mp3\")\n        resp.Send(w)\n}\n\nfunc main() {\n    http.HandleFunc(\"/\", helloMonkey)\n    http.ListenAndServe(\":8080\", nil)\n}\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at [https://github.com/chrisenytc/twilio](https://github.com/chrisenytc/twilio). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n1. Fork it [chrisenytc/twilio](https://github.com/chrisenytc/twilio/fork)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am \"Add some feature\"`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## Support\nIf you have any problem or suggestion please open an issue [here](https://github.com/chrisenytc/twilio/issues).\n\n## Credits\nThis is a fork of the project [ckvist/twilio](https://bitbucket.org/ckvist/twilio). Give some respect to him.\n\n## License \n\nCheck [here](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisenytc%2Ftwilio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrisenytc%2Ftwilio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisenytc%2Ftwilio/lists"}