Add "incoming" option for VoiceGrant.
Tags in VoiceCallSummary are a []string, not a map[string]string (the docs have them as "null", so this wasn't clear).
Use a new version of github.com/kevinburke/rest that reduces the number of imports necessary to run the library.
Add Voice Insights API (thank you @yeoji)
Add more fields to Conference struct (thank you @zmei95 for the issue report).
The Twilio Calls API recently started returning calls by StartTime instead of by Date Created, which broke our GetCallsInRange in-memory filtering. Use StartTime as the sort order key if present, falling back to DateCreated. Update the tests to match.
Add Programmable Grant chat type to the list of tokens. Thanks Kelmer Perez for the patch.
Implement Twilio Verify API. Thanks Elijah Oyekunle for the patch.
-
Support deleting messages via
client.Messages.Delete(sid)
. -
Support a different default region for local phone number parsing than "US" by overriding the value of
twilio.DefaultRegion
in an init function.
Thanks Kevin Golding for the suggestions and issue reports.
Update Pricing API to v2. This is a breaking change.
To upgrade from the v1 Pricing API:
-
VoicePrice
is nowVoicePrices
. -
VoiceNumberPrice
is nowVoiceNumberPrices
. -
NumberPrice
is nowNumberPrices
. -
MessagePrice
is nowMessagePrices
-
The
Prefixes
field in thePrefixPrice
struct is nowDestinationPrefixes
. -
OriginationPrefixes
field has been added to thePrefixPrice
struct. -
The
OutboundCallPrice
field in theVoiceNumberPrices
struct is nowOutboundCallPrices
. Add the oldOutboundCallPrice
as the first entry in the array. -
OriginationPrefixes
field has been added to theOutboundCallPrice
struct. -
NumberVoicePriceService.Get
now has 2 parameters:destinationNumber
anddata
url.Values.destinationNumber
is same as the previousnumber
field.data
can contain additional parameters likeOriginationNumber
. -
Several other
*PriceService.Get
functions now have a thirdurl.Values
parameter. Passnil
for this third parameter to maintain compatibility with the v1 API.
Add Task Router Workers API.
Add Task Router Workflow API.
Add Task Router TaskQueue API.
Add Task Router Activity API.
Add Supported Countries service. (via Andrei Schneider @megaherz)
Remove dependency on jwt-go (functionality is the same, we just generate JWT's by hand now.)
Fix key for ConferenceSid.
Add video and video recordings API
Update kevinburke/rest to version 2.0.
Support the Notify Credentials API. Thanks to Maksym Pavlenko for implementing this change.
Support the Commands Wireless API.
Add cmd/report-data-usage and cmd/report-data-usage-server for reporting recent data usage for Sims.
Partial support for wireless.twilio.com endpoints, including the Sim resource and UsageRecords for Sims.
This version of the library requires github.com/kevinburke/go-types version 0.20 at least.
Support Update() for the IncomingPhoneNumber resource.
Fix error in release 0.61.
Support the Available Phone Numbers API. Thanks to Maksym Pavlenko for contributing the patch.
Support the Twilio Fax API.
- Rename imports from github.com/saintpete/twilio-go to github.com/kevinburke/twilio-go.
Add client.UseSecretKey(key string)
to handle secret keys
properly. For more information on the secret key API, see
https://www.twilio.com/docs/api/rest/keys.
Thanks to Andrew Watson for reporting.
Switch all imports to use the "context"
library.
Use the new github.com/kevinburke/rest.DefaultTransport RoundTripper for easy HTTP debugging. (The previous code set the RoundTripper to nil, so kevinburke/rest wouldn't log anything).
Handle new HTTPS-friendly media URLs.
Support deleting/releasing phone numbers via IncomingNumbers.Release(ctx, sid).
Initial support for the Pricing API (https://pricing.twilio.com).
Add an AUTHORS.txt.
Add Recordings.GetTranscriptions() to get Transcriptions for a recording. The Transcriptions resource doesn't support filtering by Recording Sid.
Add Alert.StatusCode() function for retrieving a HTTP status code (if one exists) from an alert.
Copy url.Values for GetXInRange() functions before modifying them.
Implement GetNextConferencesInRange
Implement GetConferencesInRange. Fix paging error in GetCallsInRange/GetMessagesInRange.
Implement GetNextXInRange - if you have a next page URI and want to get an Iterator (instead of starting with a url.Values).
Fix go 1.6 (messages_example_test) relied on the stdlib Context package by accident.
Support filtering Calls/Messages down to the nanosecond in a TZ-aware way, with Calls.GetCallsInRange / Messages/GetMessagesInRange.
Add more Description fields based on errors I've received in the past. There are probably more to be found, but this is a good start.
Use the same JWT library instead of using two different ones.
Add Description() for Alert bodies.
Fix next page URL's for Twilio Monitor
The data in Update() requests was silently being ignored. They are not ignored any more.
Support the Accounts resource.
Add RequestOnBehalfOf function to make requests on behalf of a subaccount.
Fixes short tests that were broken in 0.38
Support Outgoing Caller ID's
Support Keys
Added Ended(), EndedUnsuccessfully() helpers to a Call, and FriendlyPrice() to a Transcription.