participants

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2020 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Overview

Package participants contains auto-generated files. DO NOT MODIFY

Package participants contains auto-generated files. DO NOT MODIFY

Package participants 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 participant resources 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 participants client

func (Client) Create

Create creates a new participant See https://www.twilio.com/docs/conversations/api/conversation-participant-resource#add-a-conversation-participant-sms 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 *CreateParticipantInput) (*CreateParticipantResponse, error)

CreateWithContext creates a new participant See https://www.twilio.com/docs/conversations/api/conversation-participant-resource#add-a-conversation-participant-sms for more details

func (*Client) NewParticipantsPaginator

func (c *Client) NewParticipantsPaginator() *ParticipantsPaginator

NewParticipantsPaginator creates a new instance of the paginator for Page.

func (*Client) NewParticipantsPaginatorWithOptions

func (c *Client) NewParticipantsPaginatorWithOptions(options *ParticipantsPageOptions) *ParticipantsPaginator

NewParticipantsPaginatorWithOptions creates a new instance of the paginator for Page with options.

func (Client) Page

Page retrieves a page of participants See https://www.twilio.com/docs/conversations/api/conversation-participant-resource#read-multiple-conversationparticipant-resources for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

type ClientProperties

type ClientProperties struct {
	ConversationSid string
	ServiceSid      string
}

ClientProperties are the properties required to manage the participants resources

type CreateParticipantInput

type CreateParticipantInput struct {
	Attributes       *string                               `form:"Attributes,omitempty"`
	DateCreated      *utils.RFC2822Time                    `form:"DateCreated,omitempty"`
	DateUpdated      *utils.RFC2822Time                    `form:"DateUpdated,omitempty"`
	Identity         *string                               `form:"Identity,omitempty"`
	MessagingBinding *CreateParticipantMessageBindingInput `form:"MessagingBinding,omitempty"`
	RoleSid          *string                               `form:"RoleSid,omitempty"`
}

CreateParticipantInput defines the input fields for creating a new participant resource

type CreateParticipantMessageBindingInput added in v0.6.0

type CreateParticipantMessageBindingInput struct {
	Address          *string `form:"Address,omitempty"`
	ProjectedAddress *string `form:"ProjectedAddress,omitempty"`
	ProxyAddress     *string `form:"ProxyAddress,omitempty"`
}

type CreateParticipantMessageBindingResponse added in v0.6.0

type CreateParticipantMessageBindingResponse struct {
	Address          string  `json:"address"`
	ProjectedAddress *string `json:"projected_address,omitempty"`
	ProxyAddress     string  `json:"proxy_address"`
	Type             string  `json:"type"`
}

type CreateParticipantResponse

type CreateParticipantResponse struct {
	AccountSid       string                                   `json:"account_sid"`
	Attributes       string                                   `json:"attributes"`
	ChatServiceSid   string                                   `json:"chat_service_sid"`
	ConversationSid  string                                   `json:"conversation_sid"`
	DateCreated      time.Time                                `json:"date_created"`
	DateUpdated      *time.Time                               `json:"date_updated,omitempty"`
	Identity         *string                                  `json:"identity,omitempty"`
	MessagingBinding *CreateParticipantMessageBindingResponse `json:"messaging_binding,omitempty"`
	RoleSid          *string                                  `json:"role_sid,omitempty"`
	Sid              string                                   `json:"sid"`
	URL              string                                   `json:"url"`
}

CreateParticipantResponse defines the response fields for the created participant

type PageMetaResponse

type PageMetaResponse struct {
	FirstPageURL    string  `json:"first_page_url"`
	Key             string  `json:"key"`
	NextPageURL     *string `json:"next_page_url,omitempty"`
	Page            int     `json:"page"`
	PageSize        int     `json:"page_size"`
	PreviousPageURL *string `json:"previous_page_url,omitempty"`
	URL             string  `json:"url"`
}

type PageParticipantMessageBindingResponse added in v0.6.0

type PageParticipantMessageBindingResponse struct {
	Address          string  `json:"address"`
	ProjectedAddress *string `json:"projected_address,omitempty"`
	ProxyAddress     string  `json:"proxy_address"`
	Type             string  `json:"type"`
}

type PageParticipantResponse

type PageParticipantResponse struct {
	AccountSid       string                                 `json:"account_sid"`
	Attributes       string                                 `json:"attributes"`
	ChatServiceSid   string                                 `json:"chat_service_sid"`
	ConversationSid  string                                 `json:"conversation_sid"`
	DateCreated      time.Time                              `json:"date_created"`
	DateUpdated      *time.Time                             `json:"date_updated,omitempty"`
	Identity         *string                                `json:"identity,omitempty"`
	MessagingBinding *PageParticipantMessageBindingResponse `json:"messaging_binding,omitempty"`
	RoleSid          *string                                `json:"role_sid,omitempty"`
	Sid              string                                 `json:"sid"`
	URL              string                                 `json:"url"`
}

type ParticipantsPage

type ParticipantsPage struct {
	CurrentPage *ParticipantsPageResponse
	Error       error
	// contains filtered or unexported fields
}

ParticipantsPage defines the fields for the page The CurrentPage and Error fields can be used to access the PageParticipantResponse or error that is returned from the api call(s)

type ParticipantsPageOptions

type ParticipantsPageOptions struct {
	PageSize  *int
	Page      *int
	PageToken *string
}

ParticipantsPageOptions defines the query options for the api operation

type ParticipantsPageResponse

type ParticipantsPageResponse struct {
	Meta         PageMetaResponse          `json:"meta"`
	Participants []PageParticipantResponse `json:"participants"`
}

ParticipantsPageResponse defines the response fields for the participants page

type ParticipantsPaginator

type ParticipantsPaginator struct {
	Page         *ParticipantsPage
	Participants []PageParticipantResponse
	// contains filtered or unexported fields
}

ParticipantsPaginator defines the fields for makings paginated api calls Participants is an array of participants that have been returned from all of the page calls

func (*ParticipantsPaginator) CurrentPage

CurrentPage retrieves the results for the current page

func (*ParticipantsPaginator) Error

func (p *ParticipantsPaginator) Error() error

Error retrieves the error returned from the page

func (*ParticipantsPaginator) Next

func (p *ParticipantsPaginator) 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 (*ParticipantsPaginator) NextWithContext

func (p *ParticipantsPaginator) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL