proxy.golang.org : github.com/kevinburke/twilio-go : v0.0.0-20221122012537-65f3dd7539e2
Package twilio simplifies interaction with the Twilio API. The twilio-go library should be your first choice for interacting with the Twilio API; it offers forward compatibility, very fine-grained control of API access, best-in-class control over how long to wait for requests to complete, and great debuggability when things go wrong. Get started by creating a Client: All of the Twilio resources are available as properties on the Client. Let's walk through some of the example use cases. Resources that can create new methods take a url.Values as an argument, and pass all arguments to the Twilio API. This method ensures forward compatibility; any new arguments that get invented can be added in client-side code. Call Get() with a particular sid. Call Update() with a particular sid and a url.Values. There are two flavors of interaction. First, if all you want is a single Page of resources, optionally with filters: To control the page size, set "PageSize": "N" in the url.Values{} field. Twilio defaults to returning 50 results per page if this is not set. Alternatively you can get a PageIterator and call Next() to repeatedly retrieve pages. Twilio Monitor subresources are available on the Client under the Monitor field, e.g. There are several custom types and helper functions designed to make your job easier. Where possible, we try to parse values from the Twilio API into a datatype that makes more sense. For example, we try to parse timestamps into Time values, durations into time.Duration, integer values into uints, even if the API returns them as strings, e.g. "3". All phone numbers have type PhoneNumber. By default these are E.164, but can be printed in Friendly()/Local() variations as well. Any times returned from the Twilio API are of type TwilioTime, which has two properties - Valid (a bool), and Time (a time.Time). Check Valid before using the related Time. There are constants for every Status in the API, for example StatusQueued, which has the value "queued". You can call Friendly() on any Status to get an uppercase version of the status, e.g.
Registry -
Documentation -
Download -
JSON -
codemeta.json
purl: pkg:golang/github.com/kevinburke/twilio-go@v0.0.0-20221122012537-65f3dd7539e2
Published:
Indexed:
- github.com/dgrijalva/jwt-go v3.2.0+incompatible
- github.com/go-stack/stack v1.8.1
- github.com/gofrs/uuid v4.2.0+incompatible
- github.com/golang/protobuf v1.5.2
- github.com/inconshreveable/log15 v0.0.0-20201112154412-8562bdadbbac
- github.com/kevinburke/go-types v0.0.0-20210723172823-2deba1f80ba7
- github.com/kevinburke/handlers v0.0.0-20220416175136-cbf86af60bb5
- github.com/kevinburke/rest v0.0.0-20210506044642-5611499aa33c
- github.com/mattn/go-colorable v0.1.12
- github.com/mattn/go-isatty v0.0.14
- github.com/ttacon/builder v0.0.0-20170518171403-c099f663e1c2
- github.com/ttacon/libphonenumber v1.2.1
- golang.org/x/net v0.0.0-20220614195744-fb05da6f9022
- golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f
- golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a
- golang.org/x/text v0.3.7
- google.golang.org/protobuf v1.26.0