{"id":21833541,"url":"https://github.com/ghvstcode/twillight","last_synced_at":"2025-04-14T07:51:51.867Z","repository":{"id":54688843,"uuid":"323837648","full_name":"Ghvstcode/twillight","owner":"Ghvstcode","description":"Golang SDK for Twilio APIs. https://pkg.go.dev/github.com/Ghvstcode/twillight","archived":false,"fork":false,"pushed_at":"2021-02-03T20:19:35.000Z","size":106,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T21:38:38.227Z","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/Ghvstcode.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":"2020-12-23T07:48:44.000Z","updated_at":"2023-10-27T08:11:28.000Z","dependencies_parsed_at":"2022-08-14T00:01:11.727Z","dependency_job_id":null,"html_url":"https://github.com/Ghvstcode/twillight","commit_stats":null,"previous_names":["ghvstcode/twilight"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghvstcode%2Ftwillight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghvstcode%2Ftwillight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghvstcode%2Ftwillight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghvstcode%2Ftwillight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ghvstcode","download_url":"https://codeload.github.com/Ghvstcode/twillight/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248844074,"owners_count":21170486,"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-27T19:32:00.632Z","updated_at":"2025-04-14T07:51:51.841Z","avatar_url":"https://github.com/Ghvstcode.png","language":"Go","readme":"# TWILIGHT 🦅 \nTwilight is an unofficial Golang SDK for Twilio APIs. Twilight was born as a result of my inability to spell **Twilio** correctly. I searched for a **Twillio** Golang client library and couldn’t find any, I decided to build one. Halfway through building this, I realized I had spelled **Twilio** as **Twillio** when searching for a client library on Github.\u003cbr\u003e\n\u003cbr\u003e![tenor](https://user-images.githubusercontent.com/46195831/106745073-e9a7b180-6620-11eb-99a7-cf50694f2d63.gif)\n\n\n### INSTALLATION\nTo use this in your project, Run the following command \u003cbr\u003e\n``$ go get -u github.com/Ghvstcode/twilight`` \u003cbr\u003e\n\nWith this project, you can interact with the following Twilio APIs \u003cbr\u003e\n * SMS API\n * Verify API\n * Lookup API\n\n### USAGE\nThe full examples can be found [here](https://github.com/Ghvstcode/twilight/blob/main/examples/main.go)\u003cbr\u003e\n\n* To get started with this library, you have to first authenticate. You can do this by calling the NewAuth function and passing your Account SID \u0026 Auth Token gotten from your Twilio console.\u003cbr\u003e\n* Next, You have to create a client for the API you intend to interact with. The created clients implement the interface the core functions require as their first argument\u003cbr\u003e\n* 5 digit error codes are Twilio errors. 0 error codes are my fault. You could check [here](https://www.twilio.com/docs/api/errors) for a list of all Twilio error codes\u003cbr\u003e\n\nThis is an example showning how to use this library to send an SMS\u003cbr\u003e\n\n```Golang\n\ta := twillight.NewAuth(\"ACxxxxxxx\", \"f7xxxxxxxxx\")\n\n\tsmsClient := a.NewSmsClient()\n\n\tres, err := twillight.NewOutgoingMessage(smsClient, \"+443566778\", \"+1543222\", \"HelloWorld\")\n\n\tif err != nil {\n\t\ter := err.(*app.ErrorResponse)\n\t\t\tfmt.Println(\"An Error Occured! status Code is\", er.ErrorCode())\n\t\t\n\t\tfmt.Println(err.Error())\n\t}\n\t\n\tfmt.Println(res.Status)\n  ```\n\n### Issues \u0026 Contributions\n* You encountered any issues while using this[Or just want to mess around]? Go ahead and create a new Issue!\u003cbr\u003e\n* I would love to see this project grow, If you have any contributions or ideas, please let me know! Send in your PR's\n### Notes/To-Do \n- [ ] Improve Test Coverage\n- [ ] Add more API's\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghvstcode%2Ftwillight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghvstcode%2Ftwillight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghvstcode%2Ftwillight/lists"}