{"id":22344841,"url":"https://github.com/rjpearson94/twilio-sdk-go","last_synced_at":"2025-07-30T03:31:26.136Z","repository":{"id":40435032,"uuid":"268201024","full_name":"RJPearson94/twilio-sdk-go","owner":"RJPearson94","description":"Go SDK for Twilio","archived":false,"fork":false,"pushed_at":"2023-03-14T01:01:53.000Z","size":4904,"stargazers_count":18,"open_issues_count":3,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T17:46:16.134Z","etag":null,"topics":["go","golang","sdk-go","twilio","twilio-api","twilio-go","twilio-go-sdk","twilio-sdk","twiml"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RJPearson94.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-31T03:18:33.000Z","updated_at":"2024-02-04T13:45:11.000Z","dependencies_parsed_at":"2024-06-19T01:30:59.353Z","dependency_job_id":"160e8406-94ef-4f6e-9b88-d37efde470f9","html_url":"https://github.com/RJPearson94/twilio-sdk-go","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RJPearson94%2Ftwilio-sdk-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RJPearson94%2Ftwilio-sdk-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RJPearson94%2Ftwilio-sdk-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RJPearson94%2Ftwilio-sdk-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RJPearson94","download_url":"https://codeload.github.com/RJPearson94/twilio-sdk-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228078621,"owners_count":17865959,"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":["go","golang","sdk-go","twilio","twilio-api","twilio-go","twilio-go-sdk","twilio-sdk","twiml"],"created_at":"2024-12-04T09:15:14.988Z","updated_at":"2024-12-04T09:15:15.536Z","avatar_url":"https://github.com/RJPearson94.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twilio Go SDK\n\n![Twilio SDK](https://github.com/RJPearson94/twilio-sdk-go/workflows/Twilio%20SDK/badge.svg)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/RJPearson94/twilio-sdk-go)](https://pkg.go.dev/github.com/RJPearson94/twilio-sdk-go)\n[![Release](https://img.shields.io/github/release/RJPearson94/twilio-sdk-go.svg)](https://github.com/RJPearson94/twilio-sdk-go/releases/latest)\n[![Go Report Card](https://goreportcard.com/badge/github.com/RJPearson94/twilio-sdk-go)](https://goreportcard.com/report/github.com/RJPearson94/twilio-sdk-go)\n[![License](https://img.shields.io/github/license/RJPearson94/twilio-sdk-go)](/LICENSE)\n\nThis SDK is designed to allow you to interact with Twilio API's using Golang.\n\nThis project is compatible with the following versions of Golang:\n\n| Version | Supported |\n| ------- | --------- |\n| 1.16.x  | Yes       |\n| 1.17.x  | Yes       |\n| 1.18.x  | Yes       |\n\n\u003e ⚠️ **Disclaimer**: This project is not an official Twilio project and is not supported or endorsed by Twilio in any way. It is maintained in [my](https://github.com/RJPearson94) free time.\n\n## Getting Started\n\n- [Developing the SDK](./development.md)\n\n**NOTE:** The default branch for this project is called `main`\n\n## Documentation\n\nThe code uses `go doc` style documentation with links to the relevant Twilio API documentation/ guides where appropriate.\n\n## Examples\n\nExample code snippets for all of the supported services \u0026 resources can be found [here](./examples)\n\n## Initialising the Twilio Client\n\nThere are many ways to initialise and configure the Twilio Client. See below for examples:\n\n### With Credentials\n\n```go\ncreds, err := credentials.New(credentials.Account{\n    Sid:       os.Getenv(\"TWILIO_ACCOUNT_SID\"),\n    AuthToken: os.Getenv(\"TWILIO_AUTH_TOKEN\"),\n})\nif err != nil {\n    log.Panicf(\"%s\", err.Error())\n}\n\ntwilioClient := twilio.NewWithCredentials(creds)\n```\n\n### With Session\n\n```go\ncreds, err := credentials.New(credentials.Account{\n    Sid:       os.Getenv(\"TWILIO_ACCOUNT_SID\"),\n    AuthToken: os.Getenv(\"TWILIO_AUTH_TOKEN\"),\n})\nif err != nil {\n    log.Panicf(\"%s\", err.Error())\n}\n\ntwilioClient := twilio.New(session.New(creds))\n```\n\n### With Session \u0026 Config\n\nThe Twilio Client allows the user to supply configuration to alter the default behaviour of the SDK.\n\nThe SDK supports the following configuration:\n\n- BackoffInterval - The time taken in milliseconds between retries\n- DebugEnabled - This logs out the request and response details for each call to the Twilio API\n- Edge - Specify a public edge or private interconnect to connect to Twilio via. See [Global Infrastructure - Edge Locations](https://www.twilio.com/docs/global-infrastructure/edge-locations) for more information\n- Region - Specify a public region or private interconnect region to connect to Twilio via. See [Global Infrastructure - Legacy Regions](https://www.twilio.com/docs/global-infrastructure/edge-locations/legacy-regions) for more information\n- RetryAttempts - The number of retry attempts before an error is returned\n\n#### Enabling debug mode\n\n```go\ncreds, err := credentials.New(credentials.Account{\n    Sid:       os.Getenv(\"TWILIO_ACCOUNT_SID\"),\n    AuthToken: os.Getenv(\"TWILIO_AUTH_TOKEN\"),\n})\nif err != nil {\n    log.Panicf(\"%s\", err.Error())\n}\n\ntwilioClient := twilio.New(session.New(creds), \u0026client.Config{\n   DebugEnabled: true,\n})\n```\n\n#### Specifying Edge \u0026 Region configuration\n\n```go\ncreds, err := credentials.New(credentials.Account{\n    Sid:       os.Getenv(\"TWILIO_ACCOUNT_SID\"),\n    AuthToken: os.Getenv(\"TWILIO_AUTH_TOKEN\"),\n})\nif err != nil {\n    log.Panicf(\"%s\", err.Error())\n}\n\ntwilioClient := twilio.New(session.New(creds), \u0026client.Config{\n    Edge:       utils.String(\"dublin\"),\n    Region:     utils.String(\"ie1\"),\n})\n```\n\n## Used By\n\n- [Twilio Terraform Provider](https://github.com/RJPearson94/terraform-provider-twilio)\n\n## With Thanks\n\nThis project is very heavily inspired and influenced by other open-source projects including:\n\n- [Twilio Node SDK](https://github.com/twilio/twilio-node)\n- [AWS Go V2 SDK](https://github.com/aws/aws-sdk-go-v2)\n- [Kevin Burke's Twilio Go SDK](https://github.com/kevinburke/twilio-go)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjpearson94%2Ftwilio-sdk-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frjpearson94%2Ftwilio-sdk-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjpearson94%2Ftwilio-sdk-go/lists"}