Documentation
¶
Overview ¶
Package service contains auto-generated files. DO NOT MODIFY
Package service contains auto-generated files. DO NOT MODIFY
Package service contains auto-generated files. DO NOT MODIFY
Package service contains auto-generated files. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Delete() error
- func (c Client) DeleteWithContext(context context.Context) error
- func (c Client) Fetch() (*FetchServiceResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchServiceResponse, error)
- func (c Client) Update(input *UpdateServiceInput) (*UpdateServiceResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateServiceInput) (*UpdateServiceResponse, error)
- type ClientProperties
- type FetchServiceResponse
- type UpdateServiceInput
- type UpdateServiceResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { PhoneNumber func(string) *phone_number.Client PhoneNumbers *phone_numbers.Client Session func(string) *session.Client Sessions *sessions.Client ShortCode func(string) *short_code.Client ShortCodes *short_codes.Client // contains filtered or unexported fields }
Client for managing a specific service resource See https://www.twilio.com/docs/proxy/api/service for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the service client
func (Client) Delete ¶
Delete removes a service resource from the account See https://www.twilio.com/docs/proxy/api/service#delete-a-service-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 service resource from the account See https://www.twilio.com/docs/proxy/api/service#delete-a-service-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchServiceResponse, error)
Fetch retrieves a service resource See https://www.twilio.com/docs/proxy/api/service#fetch-a-service-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) (*FetchServiceResponse, error)
FetchWithContext retrieves a service resource See https://www.twilio.com/docs/proxy/api/service#fetch-a-service-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateServiceInput) (*UpdateServiceResponse, error)
Update modifies a service resource See https://www.twilio.com/docs/proxy/api/service#update-a-service-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 *UpdateServiceInput) (*UpdateServiceResponse, error)
UpdateWithContext modifies a service resource See https://www.twilio.com/docs/proxy/api/service#update-a-service-resource for more details
type ClientProperties ¶
type ClientProperties struct {
Sid string
}
ClientProperties are the properties required to manage the service resources
type FetchServiceResponse ¶
type FetchServiceResponse struct { AccountSid string `json:"account_sid"` CallbackURL *string `json:"callback_url,omitempty"` ChatInstanceSid *string `json:"chat_instance_sid,omitempty"` ChatServiceSid string `json:"chat_service_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` DefaultTtl *int `json:"default_ttl,omitempty"` GeoMatchLevel *string `json:"geo_match_level,omitempty"` InterceptCallbackURL *string `json:"intercept_callback_url,omitempty"` NumberSelectionBehavior *string `json:"number_selection_behavior,omitempty"` OutOfSessionCallbackURL *string `json:"out_of_session_callback_url,omitempty"` Sid string `json:"sid"` URL string `json:"url"` UniqueName string `json:"unique_name"` }
FetchServiceResponse defines the response fields for the retrieved service
type UpdateServiceInput ¶
type UpdateServiceInput struct { CallbackURL *string `form:"CallbackUrl,omitempty"` ChatInstanceSid *string `form:"ChatInstanceSid,omitempty"` DefaultTtl *int `form:"DefaultTtl,omitempty"` GeoMatchLevel *string `form:"GeoMatchLevel,omitempty"` InterceptCallbackURL *string `form:"InterceptCallbackUrl,omitempty"` NumberSelectionBehavior *string `form:"NumberSelectionBehavior,omitempty"` OutOfSessionCallbackURL *string `form:"OutOfSessionCallbackUrl,omitempty"` UniqueName *string `form:"UniqueName,omitempty"` }
UpdateServiceInput defines input fields for updating a service resource
type UpdateServiceResponse ¶
type UpdateServiceResponse struct { AccountSid string `json:"account_sid"` CallbackURL *string `json:"callback_url,omitempty"` ChatInstanceSid *string `json:"chat_instance_sid,omitempty"` ChatServiceSid string `json:"chat_service_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` DefaultTtl *int `json:"default_ttl,omitempty"` GeoMatchLevel *string `json:"geo_match_level,omitempty"` InterceptCallbackURL *string `json:"intercept_callback_url,omitempty"` NumberSelectionBehavior *string `json:"number_selection_behavior,omitempty"` OutOfSessionCallbackURL *string `json:"out_of_session_callback_url,omitempty"` Sid string `json:"sid"` URL string `json:"url"` UniqueName string `json:"unique_name"` }
UpdateServiceResponse defines the response fields for the updated service
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package phone_number contains auto-generated files.
|
Package phone_number contains auto-generated files. |
Package phone_numbers contains auto-generated files.
|
Package phone_numbers contains auto-generated files. |
Package session contains auto-generated files.
|
Package session contains auto-generated files. |
interaction
Package interaction contains auto-generated files.
|
Package interaction contains auto-generated files. |
interactions
Package interactions contains auto-generated files.
|
Package interactions contains auto-generated files. |
participant
Package participant contains auto-generated files.
|
Package participant contains auto-generated files. |
participant/message_interactions
Package message_interactions contains auto-generated files.
|
Package message_interactions contains auto-generated files. |
participants
Package participants contains auto-generated files.
|
Package participants contains auto-generated files. |
Package sessions contains auto-generated files.
|
Package sessions contains auto-generated files. |
Package short_code contains auto-generated files.
|
Package short_code contains auto-generated files. |
Package short_codes contains auto-generated files.
|
Package short_codes contains auto-generated files. |