Documentation
¶
Overview ¶
Package conversations contains auto-generated files. DO NOT MODIFY
Package conversations contains auto-generated files. DO NOT MODIFY
Package conversations contains auto-generated files. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Create(input *CreateConversationInput) (*CreateConversationResponse, error)
- func (c Client) CreateWithContext(context context.Context, input *CreateConversationInput) (*CreateConversationResponse, error)
- func (c *Client) NewConversationsPaginator() *ConversationsPaginator
- func (c *Client) NewConversationsPaginatorWithOptions(options *ConversationsPageOptions) *ConversationsPaginator
- func (c Client) Page(options *ConversationsPageOptions) (*ConversationsPageResponse, error)
- func (c Client) PageWithContext(context context.Context, options *ConversationsPageOptions) (*ConversationsPageResponse, error)
- type ClientProperties
- type ConversationsPage
- type ConversationsPageOptions
- type ConversationsPageResponse
- type ConversationsPaginator
- type CreateConversationInput
- type CreateConversationResponse
- type CreateConversationTimersInput
- type CreateConversationTimersResponse
- type PageConversationResponse
- type PageConversationTimersResponse
- type PageMetaResponse
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 conversation resources See https://www.twilio.com/docs/conversations/api/conversation-resource for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the conversations client
func (Client) Create ¶
func (c Client) Create(input *CreateConversationInput) (*CreateConversationResponse, error)
Create creates a new conversation See https://www.twilio.com/docs/conversations/api/conversation-resource#create-a-conversation-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) CreateWithContext ¶
func (c Client) CreateWithContext(context context.Context, input *CreateConversationInput) (*CreateConversationResponse, error)
CreateWithContext creates a new conversation See https://www.twilio.com/docs/conversations/api/conversation-resource#create-a-conversation-resource for more details
func (*Client) NewConversationsPaginator ¶
func (c *Client) NewConversationsPaginator() *ConversationsPaginator
NewConversationsPaginator creates a new instance of the paginator for Page.
func (*Client) NewConversationsPaginatorWithOptions ¶
func (c *Client) NewConversationsPaginatorWithOptions(options *ConversationsPageOptions) *ConversationsPaginator
NewConversationsPaginatorWithOptions creates a new instance of the paginator for Page with options.
func (Client) Page ¶
func (c Client) Page(options *ConversationsPageOptions) (*ConversationsPageResponse, error)
Page retrieves a page of conversations See https://www.twilio.com/docs/conversations/api/conversation-resource#read-multiple-conversation-resources for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) PageWithContext ¶
func (c Client) PageWithContext(context context.Context, options *ConversationsPageOptions) (*ConversationsPageResponse, error)
PageWithContext retrieves a page of conversations See https://www.twilio.com/docs/conversations/api/conversation-resource#read-multiple-conversation-resources for more details
type ClientProperties ¶
type ClientProperties struct {
ServiceSid string
}
ClientProperties are the properties required to manage the conversations resources
type ConversationsPage ¶
type ConversationsPage struct { CurrentPage *ConversationsPageResponse Error error // contains filtered or unexported fields }
ConversationsPage defines the fields for the page The CurrentPage and Error fields can be used to access the PageConversationResponse or error that is returned from the api call(s)
type ConversationsPageOptions ¶
ConversationsPageOptions defines the query options for the api operation
type ConversationsPageResponse ¶
type ConversationsPageResponse struct { Conversations []PageConversationResponse `json:"conversations"` Meta PageMetaResponse `json:"meta"` }
ConversationsPageResponse defines the response fields for the conversations page
type ConversationsPaginator ¶
type ConversationsPaginator struct { Page *ConversationsPage Conversations []PageConversationResponse // contains filtered or unexported fields }
ConversationsPaginator defines the fields for makings paginated api calls Conversations is an array of conversations that have been returned from all of the page calls
func (*ConversationsPaginator) CurrentPage ¶
func (p *ConversationsPaginator) CurrentPage() *ConversationsPageResponse
CurrentPage retrieves the results for the current page
func (*ConversationsPaginator) Error ¶
func (p *ConversationsPaginator) Error() error
Error retrieves the error returned from the page
func (*ConversationsPaginator) Next ¶
func (p *ConversationsPaginator) Next() bool
Next retrieves the next page of results. Next will return false when either an error occurs or there are no more pages to iterate Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (*ConversationsPaginator) NextWithContext ¶
func (p *ConversationsPaginator) NextWithContext(context context.Context) bool
NextWithContext retrieves the next page of results. NextWithContext will return false when either an error occurs or there are no more pages to iterate
type CreateConversationInput ¶
type CreateConversationInput struct { Attributes *string `form:"Attributes,omitempty"` DateCreated *utils.RFC2822Time `form:"DateCreated,omitempty"` DateUpdated *utils.RFC2822Time `form:"DateUpdated,omitempty"` FriendlyName *string `form:"FriendlyName,omitempty"` MessagingServiceSid *string `form:"MessagingServiceSid,omitempty"` State *string `form:"State,omitempty"` Timers *CreateConversationTimersInput `form:"Timers,omitempty"` UniqueName *string `form:"UniqueName,omitempty"` }
CreateConversationInput defines the input fields for creating a new conversation resource
type CreateConversationResponse ¶
type CreateConversationResponse struct { AccountSid string `json:"account_sid"` Attributes string `json:"attributes"` ChatServiceSid *string `json:"chat_service_sid,omitempty"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` FriendlyName *string `json:"friendly_name,omitempty"` MessagingServiceSid *string `json:"messaging_service_sid,omitempty"` Sid string `json:"sid"` State string `json:"state"` Timers CreateConversationTimersResponse `json:"timers"` URL string `json:"url"` UniqueName *string `json:"unique_name,omitempty"` }
CreateConversationResponse defines the response fields for the created conversation
type CreateConversationTimersInput ¶ added in v0.6.0
type CreateConversationTimersResponse ¶ added in v0.6.0
type PageConversationResponse ¶
type PageConversationResponse struct { AccountSid string `json:"account_sid"` Attributes string `json:"attributes"` ChatServiceSid *string `json:"chat_service_sid,omitempty"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` FriendlyName *string `json:"friendly_name,omitempty"` MessagingServiceSid *string `json:"messaging_service_sid,omitempty"` Sid string `json:"sid"` State string `json:"state"` Timers PageConversationTimersResponse `json:"timers"` URL string `json:"url"` UniqueName *string `json:"unique_name,omitempty"` }