Documentation ¶
Overview ¶
Package account contains auto-generated files. DO NOT MODIFY
Package account contains auto-generated files. DO NOT MODIFY
Package account contains auto-generated files. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Fetch() (*FetchAccountResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchAccountResponse, error)
- func (c Client) Update(input *UpdateAccountInput) (*UpdateAccountResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateAccountInput) (*UpdateAccountResponse, error)
- type ClientProperties
- type FetchAccountResponse
- type UpdateAccountInput
- type UpdateAccountResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Address func(string) *address.Client Addresses *addresses.Client Application func(string) *application.Client Applications *applications.Client AvailablePhoneNumber func(string) *available_phone_number.Client AvailablePhoneNumbers *available_phone_numbers.Client Balance func() *balance.Client Call func(string) *call.Client Calls *calls.Client Conference func(string) *conference.Client Conferences *conferences.Client IncomingPhoneNumber func(string) *incoming_phone_number.Client IncomingPhoneNumbers *incoming_phone_numbers.Client Key func(string) *key.Client Keys *keys.Client Message func(string) *message.Client Messages *messages.Client Queue func(string) *queue.Client Queues *queues.Client Recording func(string) *recording.Client Recordings *recordings.Client Sip *sip.Client Tokens *tokens.Client // contains filtered or unexported fields }
Client for managing a specific account resource See https://www.twilio.com/docs/iam/api/account for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the account client
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchAccountResponse, error)
Fetch retrieves a Twilio account (parent or sub account) resource See https://www.twilio.com/docs/iam/api/account#fetch-an-account-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) (*FetchAccountResponse, error)
FetchWithContext retrieves a Twilio account (parent or sub account) resource See https://www.twilio.com/docs/iam/api/account#fetch-an-account-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateAccountInput) (*UpdateAccountResponse, error)
Update modifies a Twilio Account (parent or sub account) resource See https://www.twilio.com/docs/iam/api/account#update-an-account-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) UpdateWithContext ¶
func (c Client) UpdateWithContext(context context.Context, input *UpdateAccountInput) (*UpdateAccountResponse, error)
UpdateWithContext modifies a Twilio Account (parent or sub account) resource See https://www.twilio.com/docs/iam/api/account#update-an-account-resource for more details
type ClientProperties ¶
type ClientProperties struct {
Sid string
}
ClientProperties are the properties required to manage the account resources
type FetchAccountResponse ¶
type FetchAccountResponse struct { AuthToken string `json:"auth_token"` DateCreated utils.RFC2822Time `json:"date_created"` DateUpdated *utils.RFC2822Time `json:"date_updated,omitempty"` FriendlyName string `json:"friendly_name"` OwnerAccountSid string `json:"owner_account_sid"` Sid string `json:"sid"` Status string `json:"status"` Type string `json:"type"` }
FetchAccountResponse defines the response fields for the retrieved account
type UpdateAccountInput ¶
type UpdateAccountInput struct { FriendlyName *string `form:"FriendlyName,omitempty"` Status *string `form:"Status,omitempty"` }
UpdateAccountInput defines input fields for updating an account resource
type UpdateAccountResponse ¶
type UpdateAccountResponse struct { AuthToken string `json:"auth_token"` DateCreated utils.RFC2822Time `json:"date_created"` DateUpdated *utils.RFC2822Time `json:"date_updated,omitempty"` FriendlyName string `json:"friendly_name"` OwnerAccountSid string `json:"owner_account_sid"` Sid string `json:"sid"` Status string `json:"status"` Type string `json:"type"` }
UpdateAccountResponse defines the response fields for the updated account
Directories ¶
Path | Synopsis |
---|---|
Package address contains auto-generated files.
|
Package address contains auto-generated files. |
Package addresses contains auto-generated files.
|
Package addresses contains auto-generated files. |
Package application contains auto-generated files.
|
Package application contains auto-generated files. |
Package applications contains auto-generated files.
|
Package applications contains auto-generated files. |
Package available_phone_number contains auto-generated files.
|
Package available_phone_number contains auto-generated files. |
local
Package local contains auto-generated files.
|
Package local contains auto-generated files. |
mobile
Package mobile contains auto-generated files.
|
Package mobile contains auto-generated files. |
toll_free
Package toll_free contains auto-generated files.
|
Package toll_free contains auto-generated files. |
Package available_phone_numbers contains auto-generated files.
|
Package available_phone_numbers contains auto-generated files. |
Package balance contains auto-generated files.
|
Package balance contains auto-generated files. |
Package call contains auto-generated files.
|
Package call contains auto-generated files. |
feedback
Package feedback contains auto-generated files.
|
Package feedback contains auto-generated files. |
feedbacks
Package feedbacks contains auto-generated files.
|
Package feedbacks contains auto-generated files. |
recording
Package recording contains auto-generated files.
|
Package recording contains auto-generated files. |
recordings
Package recordings contains auto-generated files.
|
Package recordings contains auto-generated files. |
Package calls contains auto-generated files.
|
Package calls contains auto-generated files. |
feedback_summaries
Package feedback_summaries contains auto-generated files.
|
Package feedback_summaries contains auto-generated files. |
feedback_summary
Package feedback_summary contains auto-generated files.
|
Package feedback_summary contains auto-generated files. |
Package conference contains auto-generated files.
|
Package conference contains auto-generated files. |
participant
Package participant contains auto-generated files.
|
Package participant contains auto-generated files. |
participants
Package participants contains auto-generated files.
|
Package participants contains auto-generated files. |
recording
Package recording contains auto-generated files.
|
Package recording contains auto-generated files. |
recordings
Package recordings contains auto-generated files.
|
Package recordings contains auto-generated files. |
Package conferences contains auto-generated files.
|
Package conferences contains auto-generated files. |
Package incoming_phone_number contains auto-generated files.
|
Package incoming_phone_number contains auto-generated files. |
Package incoming_phone_numbers contains auto-generated files.
|
Package incoming_phone_numbers contains auto-generated files. |
Package key contains auto-generated files.
|
Package key contains auto-generated files. |
Package keys contains auto-generated files.
|
Package keys contains auto-generated files. |
Package message contains auto-generated files.
|
Package message contains auto-generated files. |
feedbacks
Package feedbacks contains auto-generated files.
|
Package feedbacks contains auto-generated files. |
media_attachment
Package media_attachment contains auto-generated files.
|
Package media_attachment contains auto-generated files. |
media_attachments
Package media_attachments contains auto-generated files.
|
Package media_attachments contains auto-generated files. |
Package messages contains auto-generated files.
|
Package messages contains auto-generated files. |
Package queue contains auto-generated files.
|
Package queue contains auto-generated files. |
member
Package member contains auto-generated files.
|
Package member contains auto-generated files. |
members
Package members contains auto-generated files.
|
Package members contains auto-generated files. |
Package queues contains auto-generated files.
|
Package queues contains auto-generated files. |
Package recording contains auto-generated files.
|
Package recording contains auto-generated files. |
Package recordings contains auto-generated files.
|
Package recordings contains auto-generated files. |
Package sip contains auto-generated files.
|
Package sip contains auto-generated files. |
credential_list
Package credential_list contains auto-generated files.
|
Package credential_list contains auto-generated files. |
credential_list/credential
Package credential contains auto-generated files.
|
Package credential contains auto-generated files. |
credential_list/credentials
Package credentials contains auto-generated files.
|
Package credentials contains auto-generated files. |
credential_lists
Package credential_lists contains auto-generated files.
|
Package credential_lists contains auto-generated files. |
domain
Package domain contains auto-generated files.
|
Package domain contains auto-generated files. |
domain/auth
Package auth contains auto-generated files.
|
Package auth contains auto-generated files. |
domain/auth/calls
Package calls contains auto-generated files.
|
Package calls contains auto-generated files. |
domain/auth/calls/credential_list_mapping
Package credential_list_mapping contains auto-generated files.
|
Package credential_list_mapping contains auto-generated files. |
domain/auth/calls/credential_list_mappings
Package credential_list_mappings contains auto-generated files.
|
Package credential_list_mappings contains auto-generated files. |
domain/auth/calls/ip_access_control_list_mapping
Package ip_access_control_list_mapping contains auto-generated files.
|
Package ip_access_control_list_mapping contains auto-generated files. |
domain/auth/calls/ip_access_control_list_mappings
Package ip_access_control_list_mappings contains auto-generated files.
|
Package ip_access_control_list_mappings contains auto-generated files. |
domain/auth/registrations
Package registrations contains auto-generated files.
|
Package registrations contains auto-generated files. |
domain/auth/registrations/credential_list_mapping
Package credential_list_mapping contains auto-generated files.
|
Package credential_list_mapping contains auto-generated files. |
domain/auth/registrations/credential_list_mappings
Package credential_list_mappings contains auto-generated files.
|
Package credential_list_mappings contains auto-generated files. |
domains
Package domains contains auto-generated files.
|
Package domains contains auto-generated files. |
ip_access_control_list
Package ip_access_control_list contains auto-generated files.
|
Package ip_access_control_list contains auto-generated files. |
ip_access_control_list/ip_address
Package ip_address contains auto-generated files.
|
Package ip_address contains auto-generated files. |
ip_access_control_list/ip_addresses
Package ip_addresses contains auto-generated files.
|
Package ip_addresses contains auto-generated files. |
ip_access_control_lists
Package ip_access_control_lists contains auto-generated files.
|
Package ip_access_control_lists contains auto-generated files. |
Package tokens contains auto-generated files.
|
Package tokens contains auto-generated files. |