Documentation ¶
Overview ¶
Package available_phone_number contains auto-generated files. DO NOT MODIFY
Package available_phone_number 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 { Local *local.Client Mobile *mobile.Client TollFree *toll_free.Client // contains filtered or unexported fields }
Client for managing available phone numbers for a specific country 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 number client
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchCountryResponse, error)
Fetch retrieves the available phone number resource for a specific country See https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#fetch-a-specific-country for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) FetchWithContext ¶
func (c Client) FetchWithContext(context context.Context) (*FetchCountryResponse, error)
FetchWithContext retrieves the available phone number resource for a specific country See https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#fetch-a-specific-country for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the available phone number resources
type FetchCountryResponse ¶
type FetchCountryResponse struct { Beta bool `json:"beta"` Country string `json:"country"` CountryCode string `json:"country_code"` }
FetchCountryResponse defines the response fields for retrieving available phone numbers for a specific country
Directories ¶
Path | Synopsis |
---|---|
Package local contains auto-generated files.
|
Package local contains auto-generated files. |
Package mobile contains auto-generated files.
|
Package mobile contains auto-generated files. |
Package toll_free contains auto-generated files.
|
Package toll_free contains auto-generated files. |