Documentation
¶
Overview ¶
Package phone_number contains auto-generated files. DO NOT MODIFY
Package 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 {
// contains filtered or unexported fields
}
Client for managing a lookup resource See https://www.twilio.com/docs/lookup/api for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the phone number client
func (Client) Fetch ¶
func (c Client) Fetch(options *FetchPhoneNumberOptions) (*FetchPhoneNumberResponse, error)
Fetch retrieves a phone number details See https://www.twilio.com/docs/lookup/api#lookup-a-phone-number 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, options *FetchPhoneNumberOptions) (*FetchPhoneNumberResponse, error)
FetchWithContext retrieves a phone number details See https://www.twilio.com/docs/lookup/api#lookup-a-phone-number for more details
type ClientProperties ¶
type ClientProperties struct {
PhoneNumber string
}
ClientProperties are the properties required to manage the phone number resources
type FetchCallerNameResponse ¶
type FetchCarrierResponse ¶
type FetchPhoneNumberOptions ¶
type FetchPhoneNumberOptions struct { CountryCode *string Type *[]string AddOns *[]string AddOnsData *map[string]interface{} }
FetchPhoneNumberOptions defines the query options for the api operation
type FetchPhoneNumberResponse ¶
type FetchPhoneNumberResponse struct { AddOns *map[string]interface{} `json:"add_ons,omitempty"` CallerName *FetchCallerNameResponse `json:"caller_name,omitempty"` Carrier *FetchCarrierResponse `json:"carrier,omitempty"` CountryCode string `json:"country_code"` NationalFormat string `json:"national_format"` PhoneNumber string `json:"phone_number"` URL string `json:"url"` }
FetchPhoneNumberResponse defines the response fields for the retrieved phone number