Documentation ¶
Overview ¶
Package available_phone_numbers contains auto-generated files. DO NOT MODIFY
Package available_phone_numbers contains auto-generated files. DO NOT MODIFY
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for managing available phone number resources See https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the available phone numbers client
func (Client) Page ¶
func (c Client) Page() (*CountriesPageResponse, error)
Page retrieves a page of countries with available phone numbers See https://www.twilio.com/docs/iam/keys/api-key-resource#read-a-key-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) PageWithContext ¶
func (c Client) PageWithContext(context context.Context) (*CountriesPageResponse, error)
PageWithContext retrieves a page of countries with available phone numbers See https://www.twilio.com/docs/iam/keys/api-key-resource#read-a-key-resource for more details
type ClientProperties ¶
type ClientProperties struct {
AccountSid string
}
ClientProperties are the properties required to manage the available phone numbers resources
type CountriesPageResponse ¶
type CountriesPageResponse struct { Countries []PageCountryResponse `json:"countries"` URI string `json:"uri"` }
CountriesPageResponse defines the response fields for the available phone number countries page