Documentation ¶
Overview ¶
Package phone_number contains auto-generated files. DO NOT MODIFY
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 specific phone number resource See https://www.twilio.com/docs/sms/services/api/phonenumber-resource for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the phonenumber client
func (Client) Delete ¶
Delete removes a phone number resource from the messaging resource See https://www.twilio.com/docs/sms/services/api/phonenumber-resource#delete-a-phonenumber-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) DeleteWithContext ¶
DeleteWithContext removes a phone number resource from the messaging resource See https://www.twilio.com/docs/sms/services/api/phonenumber-resource#delete-a-phonenumber-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchPhoneNumberResponse, error)
Fetch retrieves a phone number resource See https://www.twilio.com/docs/sms/services/api/phonenumber-resource#fetch-a-phonenumber-resource 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) (*FetchPhoneNumberResponse, error)
FetchWithContext retrieves a phone number resource See https://www.twilio.com/docs/sms/services/api/phonenumber-resource#fetch-a-phonenumber-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the phonenumber resources
type FetchPhoneNumberResponse ¶
type FetchPhoneNumberResponse struct { AccountSid string `json:"account_sid"` Capabilities []string `json:"capabilities"` CountryCode string `json:"country_code"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` PhoneNumber string `json:"phone_number"` ServiceSid string `json:"service_sid"` Sid string `json:"sid"` URL string `json:"url"` }
FetchPhoneNumberResponse defines the response fields for the retrieved phone number