Documentation ¶
Overview ¶
Package binding contains auto-generated files. DO NOT MODIFY
Package binding contains auto-generated files. DO NOT MODIFY
Package binding 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 user binding resource See https://www.twilio.com/docs/chat/rest/user-binding-resource for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the binding client
func (Client) Delete ¶
Delete removes a user binding resource from the account See https://www.twilio.com/docs/chat/rest/user-binding-resource#delete-a-user-binding-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 user binding resource from the account See https://www.twilio.com/docs/chat/rest/user-binding-resource#delete-a-user-binding-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchUserBindingResponse, error)
Fetch retrieves a user binding resource See https://www.twilio.com/docs/chat/rest/user-binding-resource#fetch-a-user-binding-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) (*FetchUserBindingResponse, error)
FetchWithContext retrieves a user binding resource See https://www.twilio.com/docs/chat/rest/user-binding-resource#fetch-a-user-binding-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the binding resources
type FetchUserBindingResponse ¶
type FetchUserBindingResponse struct { AccountSid string `json:"account_sid"` BindingType *string `json:"binding_type,omitempty"` CredentialSid string `json:"credential_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` Endpoint *string `json:"endpoint,omitempty"` Identity *string `json:"identity,omitempty"` MessageTypes *[]string `json:"message_types,omitempty"` ServiceSid string `json:"service_sid"` Sid string `json:"sid"` URL string `json:"url"` UserSid string `json:"user_sid"` }
FetchUserBindingResponse defines the response fields for the retrieved user binding