Documentation ¶
Overview ¶
This is an autogenerated file. DO NOT MODIFY
This is an autogenerated file. DO NOT MODIFY
This is an autogenerated file. DO NOT MODIFY
This is an autogenerated file. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Delete() error
- func (c Client) DeleteWithContext(context context.Context) error
- func (c Client) Fetch() (*FetchParticipantResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchParticipantResponse, error)
- func (c Client) Update(input *UpdateParticipantInput) (*UpdateParticipantResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateParticipantInput) (*UpdateParticipantResponse, error)
- type ClientProperties
- type FetchParticipantResponse
- type FetchParticipantResponseMessageBinding
- type UpdateParticipantInput
- type UpdateParticipantResponse
- type UpdateParticipantResponseMessageBinding
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 participant resource See https://www.twilio.com/docs/conversations/api/conversation-participant-resource for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the participant client
func (Client) Delete ¶
Delete removes a participant resource from the account See https://www.twilio.com/docs/conversations/api/conversation-participant-resource#delete-a-conversationparticipant-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 participant resource from the account See https://www.twilio.com/docs/conversations/api/conversation-participant-resource#delete-a-conversationparticipant-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchParticipantResponse, error)
Fetch retrieves an participant resource See https://www.twilio.com/docs/conversations/api/conversation-participant-resource#fetch-a-conversationparticipant-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) (*FetchParticipantResponse, error)
FetchWithContext retrieves an participant resource See https://www.twilio.com/docs/conversations/api/conversation-participant-resource#fetch-a-conversationparticipant-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateParticipantInput) (*UpdateParticipantResponse, error)
Update modifies a participant resource See https://www.twilio.com/docs/conversations/api/conversation-participant-resource#update-a-conversationparticipant-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 *UpdateParticipantInput) (*UpdateParticipantResponse, error)
UpdateWithContext modifies a participant resource See https://www.twilio.com/docs/conversations/api/conversation-participant-resource#update-a-conversationparticipant-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the participant resources
type FetchParticipantResponse ¶
type FetchParticipantResponse struct { AccountSid string `json:"account_sid"` Attributes string `json:"attributes"` ConversationSid string `json:"conversation_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` Identity *string `json:"identity,omitempty"` MessagingBinding *FetchParticipantResponseMessageBinding `json:"messaging_binding,omitempty"` RoleSid *string `json:"role_sid,omitempty"` Sid string `json:"sid"` URL string `json:"url"` }
FetchParticipantResponse defines the response fields for the retrieved participant
type UpdateParticipantInput ¶
type UpdateParticipantInput struct { Attributes *string `form:"Attributes,omitempty"` DateCreated *utils.RFC2822Time `form:"DateCreated,omitempty"` DateUpdated *utils.RFC2822Time `form:"DateUpdated,omitempty"` MessagingBindingProjectedAddress *string `form:"MessagingBinding.ProjectedAddress,omitempty"` MessagingBindingProxyAddress *string `form:"MessagingBinding.ProxyAddress,omitempty"` RoleSid *string `form:"RoleSid,omitempty"` }
UpdateParticipantInput defines input fields for updating an participant resource
type UpdateParticipantResponse ¶
type UpdateParticipantResponse struct { AccountSid string `json:"account_sid"` Attributes string `json:"attributes"` ConversationSid string `json:"conversation_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` Identity *string `json:"identity,omitempty"` MessagingBinding *UpdateParticipantResponseMessageBinding `json:"messaging_binding,omitempty"` RoleSid *string `json:"role_sid,omitempty"` Sid string `json:"sid"` URL string `json:"url"` }
UpdateParticipantResponse defines the response fields for the updated participant