Versions in this module Expand all Collapse all v0 v0.0.8 Oct 28, 2021 Changes in this version + type Links struct + Reservations string + TaskQueue string + Workflow string + Workspace string v0.0.7 Oct 11, 2021 Changes in this version + const TaskPathPart + type Task struct + AccountSid string + Addons string + Age int + AssignmentStatus string + Attributes string + DateCreated TwilioTime + DateUpdated TwilioTime + Links string + Priority int + Reason string + Sid string + TaskChannelSid string + TaskChannelUniqueName string + TaskQueueEnteredDate TwilioTime + TaskQueueSid string + Timeout int + URL string + WorkflowFriendlyName string + WorkflowSid string + WorkspaceSid string + type TaskPage struct + Tasks []*Task + type TaskPageIterator struct + func (c *TaskPageIterator) Next(ctx context.Context) (*TaskPage, error) + type TaskService struct + func (c *TaskService) GetPageIterator(data url.Values) *TaskPageIterator + func (ins *TaskService) GetPage(ctx context.Context, data url.Values) (*TaskPage, error) + func (ipn *TaskService) Update(ctx context.Context, sid string, data url.Values) (*Task, error) + func (r *TaskService) Create(ctx context.Context, data url.Values) (*Task, error) + func (r *TaskService) Delete(ctx context.Context, sid string) error + func (r *TaskService) Get(ctx context.Context, sid string) (*Task, error) type WorkspaceService + Tasks *TaskService v0.0.6 Sep 21, 2021 v0.0.5 Jun 21, 2021 v0.0.4 Jun 10, 2021 Changes in this version type RecordingService + func (r *RecordingService) GetNextPageIterator(nextPageURI string) *RecordingPageIterator v0.0.3 Jun 10, 2021 Changes in this version type RecordingService + SubType string v0.0.2 Jun 7, 2021 v0.0.1 Jun 7, 2021 Changes in this version + const APISearchLayout + const APIVersion + const AnsweredByHuman + const AnsweredByMachine + const CodeAccountSuspended + const CodeCarrierViolation + const CodeDocumentParseFailure + const CodeForbiddenPhoneNumber + const CodeHTTPConnectionFailure + const CodeHTTPProtocolViolation + const CodeHTTPRetrievalFailure + const CodeLandline + const CodeMessageBlocked + const CodeMessagePriceExceedsMaxPrice + const CodeMissingSegment + const CodeNoInternationalAuthorization + const CodeQueueOverflow + const CodeReplyLimitExceeded + const CodeSayInvalidText + const CodeUnknownDestination + const CodeUnknownError + const CodeUnreachable + const DirectionInbound + const DirectionOutboundAPI + const DirectionOutboundCall + const DirectionOutboundDial + const DirectionOutboundReply + const DirectionTrunkingOriginating + const DirectionTrunkingTerminating + const EventsPathPart + const FaxVersion + const InsightsVersion + const LogLevelDebug + const LogLevelError + const LogLevelNotice + const LogLevelWarning + const LookupBaseURL + const LookupVersion + const MetricsPathPart + const MonitorVersion + const NotifyBaseURL + const NotifyVersion + const PricingVersion + const RoomType + const RoomTypePeerToPeer + const StatusAccepted + const StatusActive + const StatusBusy + const StatusCanceled + const StatusClosed + const StatusCompleted + const StatusDelivered + const StatusFailed + const StatusInProgress + const StatusNoAnswer + const StatusProcessing + const StatusQueued + const StatusRead + const StatusReceived + const StatusReceiving + const StatusRinging + const StatusSending + const StatusSent + const StatusSuspended + const StatusUndelivered + const SummaryPathPart + const TaskQueuePathPart + const TaskRouterVersion + const TimeLayout + const TypeAPN + const TypeFCM + const TypeGCM + const VerifyBaseURL + const VerifyVersion + const Version + const VideoVersion + const WirelessVersion + const WorkersPathPart + const WorkflowPathPart + var BaseURL = "https://api.twilio.com" + var DefaultRegion = "US" + var Epoch = time.Date(2005, 1, 1, 0, 0, 0, 0, time.UTC) + var ErrEmptyNumber = errors.New("twilio: The provided phone number was empty") + var FaxBaseURL = "https://fax.twilio.com" + var HeatDeath = time.Date(6000, 1, 1, 0, 0, 0, 0, time.UTC) + var InsightsBaseUrl = "https://insights.twilio.com" + var MediaClient = http.Client + var MonitorBaseURL = "https://monitor.twilio.com" + var NoMoreResults = errors.New("twilio: No more results") + var PricingBaseURL = "https://pricing.twilio.com" + var TaskRouterBaseUrl = "https://taskrouter.twilio.com" + var VideoBaseUrl = "https://video.twilio.com" + var WirelessBaseURL = "https://wireless.twilio.com" + func GetExpectedTwilioSignature(host string, authToken string, URL string, postForm url.Values) (expectedTwilioSignature string) + func ValidateIncomingRequest(host string, authToken string, req *http.Request) (err error) + type Account struct + AuthToken string + DateCreated TwilioTime + DateUpdated TwilioTime + FriendlyName string + OwnerAccountSid string + Sid string + Status Status + SubresourceURIs map[string]string + Type string + URI string + type AccountPage struct + Accounts []*Account + type AccountPageIterator struct + func (c *AccountPageIterator) Next(ctx context.Context) (*AccountPage, error) + type AccountService struct + func (a *AccountService) Create(ctx context.Context, data url.Values) (*Account, error) + func (a *AccountService) Get(ctx context.Context, sid string) (*Account, error) + func (a *AccountService) GetPage(ctx context.Context, data url.Values) (*AccountPage, error) + func (a *AccountService) Update(ctx context.Context, sid string, data url.Values) (*Account, error) + func (c *AccountService) GetPageIterator(data url.Values) *AccountPageIterator + type Activity struct + AccountSid string + Available bool + DateCreated TwilioTime + DateUpdated TwilioTime + FriendlyName string + Sid string + URL string + WorkspaceSid string + type ActivityPage struct + Activities []*Activity + type ActivityPageIterator struct + func (c *ActivityPageIterator) Next(ctx context.Context) (*ActivityPage, error) + type ActivityService struct + func (c *ActivityService) GetPageIterator(data url.Values) *ActivityPageIterator + func (ins *ActivityService) GetPage(ctx context.Context, data url.Values) (*ActivityPage, error) + func (ipn *ActivityService) Update(ctx context.Context, sid string, data url.Values) (*Activity, error) + func (r *ActivityService) Create(ctx context.Context, data url.Values) (*Activity, error) + func (r *ActivityService) Delete(ctx context.Context, sid string) error + func (r *ActivityService) Get(ctx context.Context, sid string) (*Activity, error) + type Alert struct + APIVersion string + AccountSid string + AlertText string + DateCreated TwilioTime + DateGenerated TwilioTime + DateUpdated TwilioTime + ErrorCode Code + LogLevel LogLevel + MoreInfo string + RequestMethod string + RequestURL string + RequestVariables Values + ResourceSid string + ResponseBody string + ResponseHeaders Values + ServiceSid json.RawMessage + Sid string + URL string + func (a *Alert) Description() string + func (a *Alert) StatusCode() int + type AlertPage struct + Alerts []*Alert + Meta Meta + type AlertPageIterator interface + Next func(context.Context) (*AlertPage, error) + type AlertService struct + func (a *AlertService) Get(ctx context.Context, sid string) (*Alert, error) + func (a *AlertService) GetAlertsInRange(start time.Time, end time.Time, data url.Values) AlertPageIterator + func (a *AlertService) GetNextAlertsInRange(start time.Time, end time.Time, nextPageURI string) AlertPageIterator + func (a *AlertService) GetPage(ctx context.Context, data url.Values) (*AlertPage, error) + func (a *AlertService) GetPageIterator(data url.Values) AlertPageIterator + type AllDataUsage struct + Home *DataUsage + InternationalRoaming []*DataUsage + NationalRoaming *DataUsage + func (d *AllDataUsage) UnmarshalJSON(data []byte) error + type AnsweredBy string + type Application struct + APIVersion string + AccountSid string + DateCreated TwilioTime + DateUpdated TwilioTime + FriendlyName string + MessageStatusCallback string + SMSFallbackMethod string + SMSFallbackURL string + SMSURL string + Sid string + StatusCallback string + StatusCallbackMethod string + URI string + VoiceCallerIDLookup bool + VoiceFallbackMethod string + VoiceFallbackURL string + VoiceMethod string + VoiceURL string + type ApplicationPage struct + Applications []*Application + type ApplicationPageIterator struct + func (c *ApplicationPageIterator) Next(ctx context.Context) (*ApplicationPage, error) + type ApplicationService struct + func (a *ApplicationService) Update(ctx context.Context, sid string, data url.Values) (*Application, error) + func (c *ApplicationService) Create(ctx context.Context, data url.Values) (*Application, error) + func (c *ApplicationService) Get(ctx context.Context, sid string) (*Application, error) + func (c *ApplicationService) GetPage(ctx context.Context, data url.Values) (*ApplicationPage, error) + func (c *ApplicationService) GetPageIterator(data url.Values) *ApplicationPageIterator + func (r *ApplicationService) Delete(ctx context.Context, sid string) error + type AvailableNumber struct + AddressRequirements string + Beta bool + Capabilities *NumberCapability + FriendlyName string + ISOCountry string + Lata string + Latitude string + Longitude string + PhoneNumber PhoneNumber + PostalCode string + RateCenter string + Region string + type AvailableNumberBase struct + func (s *AvailableNumberBase) GetPage(ctx context.Context, isoCountry string, filters url.Values) (*AvailableNumberPage, error) + type AvailableNumberPage struct + Numbers []*AvailableNumber + URI string + type AvailableNumberService struct + Local *AvailableNumberBase + Mobile *AvailableNumberBase + SupportedCountries *SupportedCountriesService + TollFree *AvailableNumberBase + type Call struct + APIVersion string + AccountSid string + Annotation json.RawMessage + AnsweredBy NullAnsweredBy + CallerName types.NullString + DateCreated TwilioTime + DateUpdated TwilioTime + Direction Direction + Duration TwilioDuration + EndTime TwilioTime + ForwardedFrom PhoneNumber + From PhoneNumber + GroupSid string + ParentCallSid string + PhoneNumberSid string + Price string + PriceUnit string + Sid string + StartTime TwilioTime + Status Status + To PhoneNumber + URI string + func (c *Call) Ended() bool + func (c *Call) EndedUnsuccessfully() bool + func (c *Call) FriendlyPrice() string + type CallEvent struct + AccountSid string + CallSid string + Edge string + Group string + Level string + Name string + Timestamp TwilioTime + type CallEventsPage struct + Events []CallEvent + Meta Meta + type CallEventsPageIterator struct + func (c *CallEventsPageIterator) Next(ctx context.Context) (*CallEventsPage, error) + type CallEventsService struct + func (s *CallEventsService) GetPage(ctx context.Context, data url.Values) (*CallEventsPage, error) + func (s *CallEventsService) GetPageIterator(data url.Values) *CallEventsPageIterator + type CallMetric struct + AccountSid string + CallSid string + CarrierEdge *EdgeMetrics + ClientEdge *EdgeMetrics + Direction string + Edge string + SDKEdge *EdgeMetrics + SIPEdge *EdgeMetrics + Timestamp TwilioTime + type CallMetricsPage struct + Meta Meta + Metrics []CallMetric + type CallMetricsPageIterator struct + func (c *CallMetricsPageIterator) Next(ctx context.Context) (*CallMetricsPage, error) + type CallMetricsService struct + func (s *CallMetricsService) GetPage(ctx context.Context, data url.Values) (*CallMetricsPage, error) + func (s *CallMetricsService) GetPageIterator(data url.Values) *CallMetricsPageIterator + type CallPage struct + Calls []*Call + type CallPageIterator interface + Next func(context.Context) (*CallPage, error) + type CallParty struct + Callee string + Caller string + Carrier string + City string + Connection string + CountryCode string + CountrySubdivision string + IPAddress string + Location struct{ ... } + NumberPrefix string + type CallProperties struct + Direction Direction + DisconnectedBy string + LastSIPResponseNum int + PostDialDelayMs int + type CallService struct + func (c *CallService) Cancel(sid string) (*Call, error) + func (c *CallService) Create(ctx context.Context, data url.Values) (*Call, error) + func (c *CallService) Get(ctx context.Context, sid string) (*Call, error) + func (c *CallService) GetCallsInRange(start time.Time, end time.Time, data url.Values) CallPageIterator + func (c *CallService) GetNextCallsInRange(start time.Time, end time.Time, nextPageURI string) CallPageIterator + func (c *CallService) GetPage(ctx context.Context, data url.Values) (*CallPage, error) + func (c *CallService) GetPageIterator(data url.Values) CallPageIterator + func (c *CallService) GetRecordings(ctx context.Context, callSid string, data url.Values) (*RecordingPage, error) + func (c *CallService) GetRecordingsIterator(callSid string, data url.Values) *RecordingPageIterator + func (c *CallService) Hangup(sid string) (*Call, error) + func (c *CallService) MakeCall(from string, to string, u *url.URL) (*Call, error) + func (c *CallService) MakeCallWithTwiML(ctx context.Context, from string, to string, ml *twiml.TwiML) (*Call, error) + func (c *CallService) Redirect(sid string, u *url.URL) (*Call, error) + func (c *CallService) Update(ctx context.Context, sid string, data url.Values) (*Call, error) + type CallSummary struct + AccountSid string + Attributes CallSummaryAttributes + CallSid string + CallState Status + CallType string + CarrierEdge *Edge + ClientEdge *Edge + ConnectDuration int + Duration int + EndTime TwilioTime + From CallParty + ProcessingState string + Properties CallProperties + SDKEdge *SDKEdge + SIPEdge *Edge + StartTime TwilioTime + Tags []string + To CallParty + URL string + type CallSummaryAttributes struct + ConferenceParticipant bool + type CallSummaryService struct + func (s *CallSummaryService) Get(ctx context.Context) (*CallSummary, error) + func (s *CallSummaryService) GetPartial(ctx context.Context) (*CallSummary, error) + type CallerIDRequest struct + AccountSid string + CallSid string + FriendlyName string + PhoneNumber PhoneNumber + ValidationCode string + type CallerLookup struct + CallerName string + CallerType string + ErrorCode int + type CarrierLookup struct + ErrorCode int + MobileCountryCode string + MobileNetworkCode string + Name string + Type string + type CheckPhoneNumber struct + AccountSid string + Amount types.NullString + Channel string + DateCreated TwilioTime + DateUpdated TwilioTime + Payee types.NullString + ServiceSid string + Sid string + Status string + To string + Valid bool + type Client struct + APIVersion string + AccountSid string + Accounts *AccountService + Alerts *AlertService + Applications *ApplicationService + AuthToken string + AvailableNumbers *AvailableNumberService + Calls *CallService + Commands *CommandService + Conferences *ConferenceService + Credentials *NotifyCredentialsService + Fax *Client + Faxes *FaxService + FullPath func(pathPart string) string + IncomingNumbers *IncomingNumberService + Insights *Client + Keys *KeyService + Lookup *Client + LookupPhoneNumbers *LookupPhoneNumbersService + Media *MediaService + Messages *MessageService + Messaging *MessagingPriceService + Monitor *Client + Notify *Client + OutgoingCallerIDs *OutgoingCallerIDService + PhoneNumbers *PhoneNumberPriceService + Pricing *Client + Queues *QueueService + Recordings *RecordingService + Rooms *RoomService + Sims *SimService + TaskRouter *Client + Transcriptions *TranscriptionService + Verifications *VerifyPhoneNumberService + Verify *Client + Video *Client + VideoRecordings *VideoRecordingService + Voice *VoicePriceService + VoiceInsights func(sid string) *VoiceInsightsService + Wireless *Client + Workspace func(sid string) *WorkspaceService + func NewClient(accountSid string, authToken string, httpClient *http.Client) *Client + func NewFaxClient(accountSid string, authToken string, httpClient *http.Client) *Client + func NewInsightsClient(accountSid string, authToken string, httpClient *http.Client) *Client + func NewLookupClient(accountSid string, authToken string, httpClient *http.Client) *Client + func NewMonitorClient(accountSid string, authToken string, httpClient *http.Client) *Client + func NewNotifyClient(accountSid string, authToken string, httpClient *http.Client) *Client + func NewPricingClient(accountSid string, authToken string, httpClient *http.Client) *Client + func NewTaskRouterClient(accountSid string, authToken string, httpClient *http.Client) *Client + func NewVerifyClient(accountSid string, authToken string, httpClient *http.Client) *Client + func NewVideoClient(accountSid string, authToken string, httpClient *http.Client) *Client + func NewWirelessClient(accountSid string, authToken string, httpClient *http.Client) *Client + func (c *Client) CreateResource(ctx context.Context, pathPart string, data url.Values, v interface{}) error + func (c *Client) DeleteResource(ctx context.Context, pathPart string, sid string) error + func (c *Client) GetNextPage(ctx context.Context, fullUri string, v interface{}) error + func (c *Client) GetResource(ctx context.Context, pathPart string, sid string, v interface{}) error + func (c *Client) ListResource(ctx context.Context, pathPart string, data url.Values, v interface{}) error + func (c *Client) MakeRequest(ctx context.Context, method string, pathPart string, data url.Values, ...) error + func (c *Client) RequestOnBehalfOf(subaccountSid string) + func (c *Client) UpdateResource(ctx context.Context, pathPart string, sid string, data url.Values, ...) error + func (c *Client) UseSecretKey(key string) + type Code int + func (c *Code) UnmarshalJSON(b []byte) error + type Command struct + AccountSid string + Command string + CommandMode string + DateCreated TwilioTime + DateUpdated TwilioTime + Direction Direction + Sid string + SimSid string + Status Status + URL string + type CommandPage struct + Commands []*Command + Meta Meta + type CommandPageIterator interface + Next func(context.Context) (*CommandPage, error) + type CommandService struct + func (c *CommandService) Create(ctx context.Context, data url.Values) (*Command, error) + func (c *CommandService) Get(ctx context.Context, sid string) (*Command, error) + func (c *CommandService) Send(ctx context.Context, sid string, text string) (*Command, error) + func (f *CommandService) GetPage(ctx context.Context, data url.Values) (*CommandPage, error) + func (f *CommandService) GetPageIterator(data url.Values) CommandPageIterator + type CommandUsage struct + FromSim uint64 + ToSim uint64 + Total uint64 + type CommandsUsage struct + Home *CommandUsage + InternationalRoaming []*CommandUsage + NationalRoaming *CommandUsage + type Conference struct + APIVersion string + AccountSid string + CallSidEndingConference types.NullString + DateCreated TwilioTime + DateUpdated TwilioTime + FriendlyName string + Region string + Sid string + Status Status + SubresourceURIs map[string]string + URI string + type ConferencePage struct + Conferences []*Conference + type ConferencePageIterator interface + Next func(context.Context) (*ConferencePage, error) + type ConferenceService struct + func (c *ConferenceService) Get(ctx context.Context, sid string) (*Conference, error) + func (c *ConferenceService) GetConferencesInRange(start time.Time, end time.Time, data url.Values) ConferencePageIterator + func (c *ConferenceService) GetNextConferencesInRange(start time.Time, end time.Time, nextPageURI string) ConferencePageIterator + func (c *ConferenceService) GetPage(ctx context.Context, data url.Values) (*ConferencePage, error) + func (c *ConferenceService) GetPageIterator(data url.Values) ConferencePageIterator + func (c *ConferenceService) ParticipantService(sid string) *ParticipantService + type CountriesPricePage struct + Countries []*PriceCountry + Meta Meta + type CountryMessagingPriceService struct + func (cmps *CountryMessagingPriceService) Get(ctx context.Context, isoCountry string, data url.Values) (*MessagePrices, error) + func (cmps *CountryMessagingPriceService) GetPage(ctx context.Context, data url.Values) (*CountriesPricePage, error) + func (cmps *CountryMessagingPriceService) GetPageIterator(data url.Values) *CountryPricePageIterator + type CountryPhoneNumberPriceService struct + func (cpnps *CountryPhoneNumberPriceService) Get(ctx context.Context, isoCountry string, data url.Values) (*NumberPrices, error) + func (cpnps *CountryPhoneNumberPriceService) GetPage(ctx context.Context, data url.Values) (*CountriesPricePage, error) + func (cpnps *CountryPhoneNumberPriceService) GetPageIterator(data url.Values) *CountryPricePageIterator + type CountryPricePageIterator struct + func (c *CountryPricePageIterator) Next(ctx context.Context) (*CountriesPricePage, error) + type CountryVoicePriceService struct + func (cvps *CountryVoicePriceService) Get(ctx context.Context, isoCountry string, data url.Values) (*VoicePrices, error) + func (cvps *CountryVoicePriceService) GetPage(ctx context.Context, data url.Values) (*CountriesPricePage, error) + func (cvps *CountryVoicePriceService) GetPageIterator(data url.Values) *CountryPricePageIterator + type CredentialType string + type CumulativeMetrics struct + Jitter MetricsSummary + PacketsLost int + PacketsReceived int + type DataUsage struct + Download types.Bits + Total types.Bits + Units string + Upload types.Bits + func (d *DataUsage) UnmarshalJSON(data []byte) error + type Direction string + func (d Direction) Friendly() string + type Edge struct + Metrics struct{ ... } + Properties EdgeProperties + type EdgeMetadata struct + ExternalIP string + Region string + TwilioIP string + type EdgeMetrics struct + Codec int + CodecName string + Cumulative CumulativeMetrics + Interval *IntervalMetrics + Metadata EdgeMetadata + type EdgeProperties struct + Direction string + DisconnectedBy string + ExternalMediaIP string + ExternalSignalingIP string + MediaRegion string + Region string + SIPCallID string + SelectedRegion string + SignalingRegion string + TrunkSID string + TwilioMediaIP string + TwilioSignalingIP string + UserAgent string + type EdgeSummary struct + Codec int + CodecName string + Jitter MetricsSummary + Latency MetricsSummary + PacketDelayVariation map[string]int + PacketsLossPercentage float64 + PacketsLost int + PacketsReceived int + PacketsSent int + type Fax struct + APIVersion string + AccountSid string + DateCreated TwilioTime + DateUpdated TwilioTime + Direction Direction + Duration uint + From PhoneNumber + MediaURL string + NumPages uint + Price string + PriceUnit string + Quality string + Sid string + Status Status + To PhoneNumber + URL string + func (f *Fax) FriendlyPrice() string + type FaxPage struct + Faxes []*Fax + Meta Meta + type FaxPageIterator interface + Next func(context.Context) (*FaxPage, error) + type FaxService struct + func (c *FaxService) Update(ctx context.Context, sid string, data url.Values) (*Fax, error) + func (f *FaxService) Cancel(sid string) (*Fax, error) + func (f *FaxService) Create(ctx context.Context, data url.Values) (*Fax, error) + func (f *FaxService) Get(ctx context.Context, sid string) (*Fax, error) + func (f *FaxService) GetPage(ctx context.Context, data url.Values) (*FaxPage, error) + func (f *FaxService) GetPageIterator(data url.Values) FaxPageIterator + func (f *FaxService) SendFax(from string, to string, mediaURL *url.URL) (*Fax, error) + type InboundPrice struct + BasePrice string + CurrentPrice string + NumberType string + type IncomingNumberService struct + Local *NumberPurchasingService + TollFree *NumberPurchasingService + func (c *IncomingNumberService) GetPageIterator(data url.Values) *IncomingPhoneNumberPageIterator + func (ins *IncomingNumberService) GetPage(ctx context.Context, data url.Values) (*IncomingPhoneNumberPage, error) + func (ipn *IncomingNumberService) BuyNumber(phoneNumber string) (*IncomingPhoneNumber, error) + func (ipn *IncomingNumberService) Get(ctx context.Context, sid string) (*IncomingPhoneNumber, error) + func (ipn *IncomingNumberService) Release(ctx context.Context, sid string) error + func (ipn *IncomingNumberService) Update(ctx context.Context, sid string, data url.Values) (*IncomingPhoneNumber, error) + type IncomingPhoneNumber struct + APIVersion string + AccountSid string + AddressRequirements string + Beta bool + Capabilities *NumberCapability + DateCreated TwilioTime + DateUpdated TwilioTime + EmergencyAddressSid types.NullString + EmergencyStatus string + FriendlyName string + PhoneNumber PhoneNumber + SMSApplicationSid string + SMSFallbackMethod string + SMSFallbackURL string + SMSMethod string + SMSURL string + Sid string + StatusCallback string + StatusCallbackMethod string + TrunkSid types.NullString + URI string + VoiceApplicationSid string + VoiceCallerIDLookup bool + VoiceFallbackMethod string + VoiceFallbackURL string + VoiceMethod string + VoiceURL string + type IncomingPhoneNumberPage struct + IncomingPhoneNumbers []*IncomingPhoneNumber + type IncomingPhoneNumberPageIterator struct + func (c *IncomingPhoneNumberPageIterator) Next(ctx context.Context) (*IncomingPhoneNumberPage, error) + type IntervalMetrics struct + AudioIn int + AudioOut int + Jitter int + PacketsLossPercentage float64 + PacketsLost int + RTT int + type Key struct + DateCreated TwilioTime + DateUpdated TwilioTime + FriendlyName string + Secret string + Sid string + type KeyPage struct + Keys []*Key + type KeyPageIterator struct + func (c *KeyPageIterator) Next(ctx context.Context) (*KeyPage, error) + type KeyService struct + func (a *KeyService) Update(ctx context.Context, sid string, data url.Values) (*Key, error) + func (c *KeyService) Create(ctx context.Context, data url.Values) (*Key, error) + func (c *KeyService) Get(ctx context.Context, sid string) (*Key, error) + func (c *KeyService) GetPage(ctx context.Context, data url.Values) (*KeyPage, error) + func (c *KeyService) GetPageIterator(data url.Values) *KeyPageIterator + func (r *KeyService) Delete(ctx context.Context, sid string) error + type LogLevel string + func (l LogLevel) Friendly() string + type LookupPhoneNumbersService struct + func (s *LookupPhoneNumbersService) Get(ctx context.Context, phone string, data url.Values) (*PhoneLookup, error) + type Media struct + AccountSid string + ContentType string + DateCreated TwilioTime + DateUpdated TwilioTime + ParentSid string + Sid string + URI string + type MediaPage struct + MediaList []*Media + type MediaService struct + func (m *MediaService) Get(ctx context.Context, messageSid string, sid string) (*Media, error) + func (m *MediaService) GetImage(ctx context.Context, messageSid string, sid string) (image.Image, error) + func (m *MediaService) GetPage(ctx context.Context, messageSid string, data url.Values) (*MediaPage, error) + func (m *MediaService) GetURL(ctx context.Context, messageSid string, sid string) (*url.URL, error) + type Message struct + APIVersion string + AccountSid string + Body string + DateCreated TwilioTime + DateSent TwilioTime + DateUpdated TwilioTime + Direction Direction + ErrorCode Code + ErrorMessage string + From PhoneNumber + MessagingServiceSid types.NullString + NumMedia NumMedia + NumSegments Segments + Price string + PriceUnit string + Sid string + Status Status + SubresourceURIs map[string]string + To PhoneNumber + URI string + func (m *Message) FriendlyPrice() string + type MessagePage struct + Messages []*Message + type MessagePageIterator interface + Next func(context.Context) (*MessagePage, error) + type MessagePrices struct + Country string + InboundSmsPrices []InboundPrice + IsoCountry string + OutboundSMSPrices []OutboundSMSPrice + PriceUnit string + URL string + type MessageService struct + func (c *MessageService) GetMessagesInRange(start time.Time, end time.Time, data url.Values) MessagePageIterator + func (c *MessageService) GetNextMessagesInRange(start time.Time, end time.Time, nextPageURI string) MessagePageIterator + func (m *MessageService) Create(ctx context.Context, data url.Values) (*Message, error) + func (m *MessageService) Delete(ctx context.Context, sid string) error + func (m *MessageService) Get(ctx context.Context, sid string) (*Message, error) + func (m *MessageService) GetMediaURLs(ctx context.Context, sid string, data url.Values) ([]*url.URL, error) + func (m *MessageService) GetPage(ctx context.Context, data url.Values) (*MessagePage, error) + func (m *MessageService) GetPageIterator(data url.Values) MessagePageIterator + func (m *MessageService) SendMessage(from string, to string, body string, mediaURLs []*url.URL) (*Message, error) + type MessagingPriceService struct + Countries *CountryMessagingPriceService + type Meta struct + FirstPageURL string + Key string + NextPageURL types.NullString + Page uint + PageSize uint + PreviousPageURL types.NullString + type MetricsSummary struct + Avg float64 + Max float64 + Min float64 + type NotifyCredential struct + AccountSid string + DateCreated TwilioTime + DateUpdated TwilioTime + FriendlyName string + Sid string + Type CredentialType + URL string + type NotifyCredentialPage struct + Credentials []*NotifyCredential + type NotifyCredentialPageIterator struct + func (r *NotifyCredentialPageIterator) Next(ctx context.Context) (*NotifyCredentialPage, error) + type NotifyCredentialsService struct + func (n *NotifyCredentialsService) Create(ctx context.Context, data url.Values) (*NotifyCredential, error) + func (n *NotifyCredentialsService) CreateAPN(ctx context.Context, friendlyName string, cert string, privateKey string, ...) (*NotifyCredential, error) + func (n *NotifyCredentialsService) CreateFCM(ctx context.Context, friendlyName string, secret string) (*NotifyCredential, error) + func (n *NotifyCredentialsService) CreateGCM(ctx context.Context, friendlyName string, apiKey string) (*NotifyCredential, error) + func (n *NotifyCredentialsService) Delete(ctx context.Context, sid string) error + func (n *NotifyCredentialsService) Get(ctx context.Context, sid string) (*NotifyCredential, error) + func (n *NotifyCredentialsService) GetPage(ctx context.Context, data url.Values) (*NotifyCredentialPage, error) + func (n *NotifyCredentialsService) GetPageIterator(data url.Values) *NotifyCredentialPageIterator + func (n *NotifyCredentialsService) Update(ctx context.Context, sid string, data url.Values) (*NotifyCredential, error) + type NotifyService struct + Credentials *NotifyCredentialsService + type NullAnsweredBy struct + AnsweredBy AnsweredBy + Valid bool + type NumMedia uintStr + func (n *NumMedia) UnmarshalJSON(b []byte) (err error) + type NumberCapability struct + MMS bool + SMS bool + Voice bool + type NumberPrices struct + Country string + IsoCountry string + PhoneNumberPrices []PhoneNumberPrice + PriceUnit string + URL string + type NumberPurchasingService struct + func (n *NumberPurchasingService) Create(ctx context.Context, data url.Values) (*IncomingPhoneNumber, error) + type NumberVoicePriceService struct + func (nvps *NumberVoicePriceService) Get(ctx context.Context, destinationNumber string, data url.Values) (*VoiceNumberPrices, error) + type OutboundCallPrice struct + BasePrice string + CurrentPrice string + OriginationPrefixes []string + type OutboundSMSPrice struct + Carrier string + MCC string + MNC string + Prices []InboundPrice + type OutgoingCallerID struct + AccountSid string + DateCreated TwilioTime + DateUpdated TwilioTime + FriendlyName string + PhoneNumber PhoneNumber + Sid string + URI string + type OutgoingCallerIDPage struct + OutgoingCallerIDs []*OutgoingCallerID + type OutgoingCallerIDPageIterator struct + func (o *OutgoingCallerIDPageIterator) Next(ctx context.Context) (*OutgoingCallerIDPage, error) + type OutgoingCallerIDService struct + func (c *OutgoingCallerIDService) Create(ctx context.Context, data url.Values) (*CallerIDRequest, error) + func (o *OutgoingCallerIDService) Delete(ctx context.Context, sid string) error + func (o *OutgoingCallerIDService) Get(ctx context.Context, sid string) (*OutgoingCallerID, error) + func (o *OutgoingCallerIDService) GetPage(ctx context.Context, data url.Values) (*OutgoingCallerIDPage, error) + func (o *OutgoingCallerIDService) GetPageIterator(data url.Values) *OutgoingCallerIDPageIterator + func (o *OutgoingCallerIDService) Update(ctx context.Context, sid string, data url.Values) (*OutgoingCallerID, error) + type Page struct + End uint + FirstPageURI string + NextPageURI types.NullString + NumPages uint + PageSize uint + PreviousPageURI types.NullString + Start uint + Total uint + type PageIterator struct + func NewNextPageIterator(client *Client, nextPageURI string) *PageIterator + func NewPageIterator(client *Client, data url.Values, pathPart string) *PageIterator + func (p *PageIterator) Next(ctx context.Context, v interface{}) error + func (p *PageIterator) SetNextPageURI(npuri types.NullString) + type Participant struct + AccountSid string + CallSid string + ConferenceSid string + DateCreated TwilioTime + DateUpdated TwilioTime + EndConferenceOnExit bool + Hold bool + Muted bool + StartConferenceOnEnter bool + URI string + type ParticipantPage struct + Meta Meta + Participant []*Room + type ParticipantPageIterator struct + func (s *ParticipantPageIterator) Next(ctx context.Context) (*ParticipantPage, error) + type ParticipantService struct + func (s *ParticipantService) Create(ctx context.Context, data url.Values) (*Participant, error) + func (s *ParticipantService) CreateParticipant(ctx context.Context, from, to string) (*Participant, error) + func (s *ParticipantService) Delete(ctx context.Context, pid string, data url.Values) error + func (s *ParticipantService) Get(ctx context.Context, pid string) (*Participant, error) + func (s *ParticipantService) GetPage(ctx context.Context, data url.Values) (*ParticipantPage, error) + func (s *ParticipantService) GetPageIterator(data url.Values) *ParticipantPageIterator + func (s *ParticipantService) HoldWithMusic(ctx context.Context, pid string, holdURL string) (*Participant, error) + func (s *ParticipantService) Mute(ctx context.Context, pid string) (*Participant, error) + func (s *ParticipantService) SendAnnouncement(ctx context.Context, pid string, announceURL string) (*Participant, error) + func (s *ParticipantService) Unhold(ctx context.Context, pid string) (*Participant, error) + func (s *ParticipantService) Unmute(ctx context.Context, pid string) (*Participant, error) + func (s *ParticipantService) Update(ctx context.Context, pid string, data url.Values) (*Participant, error) + type PhoneLookup struct + CallerName CallerLookup + Carrier CarrierLookup + CountryCode string + NationalFormat string + PhoneNumber string + URL string + type PhoneNumber string + func NewPhoneNumber(pn string) (PhoneNumber, error) + func (pn PhoneNumber) Friendly() string + func (pn PhoneNumber) Local() string + type PhoneNumberPrice struct + BasePrice string + CurrentPrice string + NumberType string + type PhoneNumberPriceService struct + Countries *CountryPhoneNumberPriceService + type PrefixPrice struct + BasePrice string + CurrentPrice string + DestinationPrefixes []string + FriendlyName string + OriginationPrefixes []string + type PriceCountry struct + Country string + IsoCountry string + URL string + type Queue struct + AccountSid string + AverageWaitTime uint + CurrentSize uint + DateCreated TwilioTime + DateUpdated TwilioTime + FriendlyName string + MaxSize uint + Sid string + URI string + type QueuePage struct + Queues []*Queue + type QueuePageIterator struct + func (c *QueuePageIterator) Next(ctx context.Context) (*QueuePage, error) + type QueueService struct + func (c *QueueService) Create(ctx context.Context, data url.Values) (*Queue, error) + func (c *QueueService) Delete(ctx context.Context, sid string) error + func (c *QueueService) Get(ctx context.Context, sid string) (*Queue, error) + func (c *QueueService) GetPage(ctx context.Context, data url.Values) (*QueuePage, error) + func (c *QueueService) GetPageIterator(data url.Values) *QueuePageIterator + type Recording struct + APIVersion string + AccountSid string + CallSid string + Channels uint + DateCreated TwilioTime + DateUpdated TwilioTime + Duration TwilioDuration + Price string + PriceUnit string + Sid string + Status Status + URI string + func (r *Recording) FriendlyPrice() string + func (r *Recording) URL(extension string) string + type RecordingPage struct + Recordings []*Recording + type RecordingPageIterator struct + func (r *RecordingPageIterator) Next(ctx context.Context) (*RecordingPage, error) + type RecordingService struct + func (r *RecordingService) Delete(ctx context.Context, sid string) error + func (r *RecordingService) Get(ctx context.Context, sid string) (*Recording, error) + func (r *RecordingService) GetPage(ctx context.Context, data url.Values) (*RecordingPage, error) + func (r *RecordingService) GetPageIterator(data url.Values) *RecordingPageIterator + func (r *RecordingService) GetTranscriptions(ctx context.Context, recordingSid string, data url.Values) (*TranscriptionPage, error) + type Room struct + AccountSid string + DateCreated TwilioTime + DateUpdated TwilioTime + Duration uint + EnableTurn bool + EndTime TwilioTime + Links map[string]string + MaxParticipants uint + MediaRegion string + RecordParticipantsOnConnect bool + Sid string + Status Status + StatusCallback string + StatusCallbackMethod string + Type string + URL string + UniqueName string + type RoomPage struct + Meta Meta + Rooms []*Room + type RoomPageIterator struct + func (r *RoomPageIterator) Next(ctx context.Context) (*RoomPage, error) + type RoomService struct + func (r *RoomService) Complete(sid string) (*Room, error) + func (r *RoomService) Create(ctx context.Context, data url.Values) (*Room, error) + func (r *RoomService) Get(ctx context.Context, sidOrUniqueName string) (*Room, error) + func (r *RoomService) GetPage(ctx context.Context, data url.Values) (*RoomPage, error) + func (r *RoomService) GetPageIterator(data url.Values) *RoomPageIterator + type SDKEdge struct + Events SDKEdgeEvents + Metrics struct{ ... } + Properties SDKEdgeProperties + type SDKEdgeEvents struct + Errors map[string]int + Groups map[string]int + Levels map[string]int + type SDKEdgeProperties struct + Direction string + Settings struct{ ... } + type SDKEdgeSummary struct + AudioIn MetricsSummary + AudioOut MetricsSummary + MOS MetricsSummary + RTT MetricsSummary + Tags []string + type Segments uintStr + func (seg *Segments) UnmarshalJSON(b []byte) (err error) + type Sim struct + AccountSid string + CommandsCallbackMethod string + CommandsCallbackURL types.NullString + DateCreated TwilioTime + DateUpdated TwilioTime + FriendlyName types.NullString + ICCID string + Links map[string]string + RatePlanSid string + SMSFallbackMethod types.NullString + SMSFallbackURL types.NullString + SMSMethod types.NullString + SMSURL types.NullString + Sid string + Status Status + URL string + UniqueName string + VoiceFallbackMethod types.NullString + VoiceFallbackURL types.NullString + VoiceMethod types.NullString + VoiceURL types.NullString + type SimPage struct + Meta Meta + Sims []*Sim + type SimPageIterator interface + Next func(context.Context) (*SimPage, error) + type SimService struct + func (c *SimService) Update(ctx context.Context, sid string, data url.Values) (*Sim, error) + func (f *SimService) GetPage(ctx context.Context, data url.Values) (*SimPage, error) + func (f *SimService) GetPageIterator(data url.Values) SimPageIterator + func (s *SimService) Get(ctx context.Context, sid string) (*Sim, error) + func (s *SimService) GetUsageRecords(ctx context.Context, simSid string, data url.Values) (*SimUsageRecordPage, error) + func (s *SimService) GetUsageRecordsIterator(simSid string, data url.Values) SimUsageRecordPageIterator + type SimUsageRecord struct + AccountSid string + Commands CommandsUsage + Data AllDataUsage + Period UsagePeriod + SimSid string + type SimUsageRecordPage struct + Meta Meta + UsageRecords []*SimUsageRecord + type SimUsageRecordPageIterator interface + Next func(context.Context) (*SimUsageRecordPage, error) + type Status string + func (s Status) Friendly() string + type SupportedCountries struct + Countries []*SupportedCountry + URI string + type SupportedCountriesService struct + func (s *SupportedCountriesService) Get(ctx context.Context, beta bool) (*SupportedCountries, error) + type SupportedCountry struct + Beta bool + Country string + CountryCode string + SubresourceURIs map[string]string + URI string + type TaskQueue struct + AccountSid string + AssignmentActivityName string + AssignmentActivitySid string + DateCreated TwilioTime + DateUpdated TwilioTime + FriendlyName string + MaxReservedWorkers int + ReservationActivityName string + ReservationActivitySid string + Sid string + TargetWorkers string + TaskOrder string + URL string + WorkspaceSid string + type TaskQueuePage struct + TaskQueues []*TaskQueue + type TaskQueuePageIterator struct + func (c *TaskQueuePageIterator) Next(ctx context.Context) (*TaskQueuePage, error) + type TaskQueueService struct + func (c *TaskQueueService) GetPageIterator(data url.Values) *TaskQueuePageIterator + func (ins *TaskQueueService) GetPage(ctx context.Context, data url.Values) (*TaskQueuePage, error) + func (ipn *TaskQueueService) Update(ctx context.Context, sid string, data url.Values) (*TaskQueue, error) + func (r *TaskQueueService) Create(ctx context.Context, data url.Values) (*TaskQueue, error) + func (r *TaskQueueService) Delete(ctx context.Context, sid string) error + func (r *TaskQueueService) Get(ctx context.Context, sid string) (*TaskQueue, error) + type Transcription struct + APIVersion string + AccountSid string + DateCreated TwilioTime + DateUpdated TwilioTime + Duration TwilioDuration + Price string + PriceUnit string + RecordingSid string + Sid string + Status Status + TranscriptionText string + Type string + URI string + func (t *Transcription) FriendlyPrice() string + type TranscriptionPage struct + Transcriptions []*Transcription + type TranscriptionPageIterator struct + func (c *TranscriptionPageIterator) Next(ctx context.Context) (*TranscriptionPage, error) + type TranscriptionService struct + func (c *TranscriptionService) Delete(ctx context.Context, sid string) error + func (c *TranscriptionService) Get(ctx context.Context, sid string) (*Transcription, error) + func (c *TranscriptionService) GetPage(ctx context.Context, data url.Values) (*TranscriptionPage, error) + func (c *TranscriptionService) GetPageIterator(data url.Values) *TranscriptionPageIterator + type TwilioDuration time.Duration + func (td *TwilioDuration) UnmarshalJSON(b []byte) error + func (td TwilioDuration) String() string + type TwilioTime struct + Time time.Time + Valid bool + func NewTwilioTime(val string) *TwilioTime + func (t *TwilioTime) UnmarshalJSON(b []byte) error + func (tt *TwilioTime) MarshalJSON() ([]byte, error) + type UsagePeriod struct + End time.Time + Start time.Time + type Values struct + func (h *Values) UnmarshalJSON(b []byte) error + type VerifyPhoneNumber struct + AccountSid string + Amount types.NullString + Channel string + DateCreated TwilioTime + DateUpdated TwilioTime + Lookup PhoneLookup + Payee types.NullString + ServiceSid string + Sid string + Status string + To PhoneNumber + URL string + Valid bool + type VerifyPhoneNumberService struct + func (v *VerifyPhoneNumberService) Check(ctx context.Context, verifyServiceID string, data url.Values) (*CheckPhoneNumber, error) + func (v *VerifyPhoneNumberService) Create(ctx context.Context, verifyServiceID string, data url.Values) (*VerifyPhoneNumber, error) + func (v *VerifyPhoneNumberService) Get(ctx context.Context, verifyServiceID string, sid string) (*VerifyPhoneNumber, error) + type VideoMedia struct + Location string + type VideoRecording struct + Codec string + ContainerFormat string + DateCreated TwilioTime + Duration uint + GroupingSids map[string]string + Links map[string]string + Sid string + Size uint + SourceSid string + Status Status + Type string + URI string + type VideoRecordingPage struct + Meta Meta + Recordings []*VideoRecording + type VideoRecordingPageIterator struct + func (vr *VideoRecordingPageIterator) Next(ctx context.Context) (*VideoRecordingPage, error) + type VideoRecordingService struct + func (vr *VideoRecordingService) Delete(ctx context.Context, sid string) error + func (vr *VideoRecordingService) Get(ctx context.Context, sid string) (*VideoRecording, error) + func (vr *VideoRecordingService) GetPage(ctx context.Context, data url.Values) (*VideoRecordingPage, error) + func (vr *VideoRecordingService) GetPageIterator(data url.Values) *VideoRecordingPageIterator + func (vr *VideoRecordingService) Media(ctx context.Context, sid string) (*VideoMedia, error) + type VoiceInsightsService struct + Events *CallEventsService + Metrics *CallMetricsService + Summary *CallSummaryService + type VoiceNumberPrices struct + Country string + DestinationNumber string + InboundCallPrice InboundPrice + IsoCountry string + OriginationNumber string + OutboundCallPrices []OutboundCallPrice + PriceUnit string + URL string + type VoicePriceService struct + Countries *CountryVoicePriceService + Numbers *NumberVoicePriceService + type VoicePrices struct + Country string + InboundCallPrices []InboundPrice + IsoCountry string + OutboundPrefixPrices []PrefixPrice + PriceUnit string + URL string + type Worker struct + AccountSid string + ActivityName string + ActivitySid string + Attributes string + Available bool + DateCreated TwilioTime + DateUpdated TwilioTime + FriendlyName string + Sid string + URL string + WorkspaceSid string + type WorkerPage struct + Workers []*Worker + type WorkerPageIterator struct + func (c *WorkerPageIterator) Next(ctx context.Context) (*WorkerPage, error) + type WorkerService struct + func (c *WorkerService) GetPageIterator(data url.Values) *WorkerPageIterator + func (ins *WorkerService) GetPage(ctx context.Context, data url.Values) (*WorkerPage, error) + func (ipn *WorkerService) Update(ctx context.Context, sid string, data url.Values) (*Worker, error) + func (r *WorkerService) Create(ctx context.Context, data url.Values) (*Worker, error) + func (r *WorkerService) Delete(ctx context.Context, sid string) error + func (r *WorkerService) Get(ctx context.Context, sid string) (*Worker, error) + type Workflow struct + AccountSid string + AssignmentCallbackURL string + Configuration string + DateCreated TwilioTime + DateUpdated TwilioTime + FallbackAssignmentCallbackURL string + FriendlyName string + Sid string + TaskReservationTimeout int + URL string + WorkspaceSid string + type WorkflowPage struct + Workflows []*Workflow + type WorkflowPageIterator struct + func (c *WorkflowPageIterator) Next(ctx context.Context) (*WorkflowPage, error) + type WorkflowService struct + func (c *WorkflowService) GetPageIterator(data url.Values) *WorkflowPageIterator + func (ins *WorkflowService) GetPage(ctx context.Context, data url.Values) (*WorkflowPage, error) + func (ipn *WorkflowService) Update(ctx context.Context, sid string, data url.Values) (*Workflow, error) + func (r *WorkflowService) Create(ctx context.Context, data url.Values) (*Workflow, error) + func (r *WorkflowService) Delete(ctx context.Context, sid string) error + func (r *WorkflowService) Get(ctx context.Context, sid string) (*Workflow, error) + type WorkspaceService struct + Activities *ActivityService + Queues *TaskQueueService + Workers *WorkerService + Workflows *WorkflowService