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 ¶
- type Client
- func (c Client) Create(input *CreateParticipantInput) (*CreateParticipantResponse, error)
- func (c Client) CreateWithContext(context context.Context, input *CreateParticipantInput) (*CreateParticipantResponse, error)
- func (c *Client) NewParticipantsPaginator() *ParticipantsPaginator
- func (c *Client) NewParticipantsPaginatorWithOptions(options *ParticipantsPageOptions) *ParticipantsPaginator
- func (c Client) Page(options *ParticipantsPageOptions) (*ParticipantsPageResponse, error)
- func (c Client) PageWithContext(context context.Context, options *ParticipantsPageOptions) (*ParticipantsPageResponse, error)
- type ClientProperties
- type CreateParticipantInput
- type CreateParticipantResponse
- type PageParticipantResponse
- type ParticipantsPage
- type ParticipantsPageOptions
- type ParticipantsPageResponse
- type ParticipantsPaginator
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/voice/api/conference-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 ¶
func (c Client) Create(input *CreateParticipantInput) (*CreateParticipantResponse, error)
Create creates a new participant resource See https://www.twilio.com/docs/voice/api/conference-participant-resource#create-a-participant 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 resource See https://www.twilio.com/docs/voice/api/conference-participant-resource#create-a-participant 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 ¶
func (c Client) Page(options *ParticipantsPageOptions) (*ParticipantsPageResponse, error)
Page retrieves a page of participants See https://www.twilio.com/docs/voice/api/conference-participant-resource#read-multiple-participant-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 *ParticipantsPageOptions) (*ParticipantsPageResponse, error)
PageWithContext retrieves a page of participants See https://www.twilio.com/docs/voice/api/conference-participant-resource#read-multiple-participant-resources for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the participants resources
type CreateParticipantInput ¶
type CreateParticipantInput struct { Beep *string `form:"Beep,omitempty"` Byoc *string `form:"Byoc,omitempty"` CallReason *string `form:"CallReason,omitempty"` CallSidToCoach *string `form:"CallSidToCoach,omitempty"` CallerID *string `form:"CallerId,omitempty"` Coaching *bool `form:"Coaching,omitempty"` ConferenceRecord *string `form:"ConferenceRecord,omitempty"` ConferenceRecordingStatusCallback *string `form:"ConferenceRecordingStatusCallback,omitempty"` ConferenceRecordingStatusCallbackEvents *[]string `form:"ConferenceRecordingStatusCallbackEvent,omitempty"` ConferenceRecordingStatusCallbackMethod *string `form:"ConferenceRecordingStatusCallbackMethod,omitempty"` ConferenceStatusCallback *string `form:"ConferenceStatusCallback,omitempty"` ConferenceStatusCallbackEvents *[]string `form:"ConferenceStatusCallbackEvent,omitempty"` ConferenceStatusCallbackMethod *string `form:"ConferenceStatusCallbackMethod,omitempty"` ConferenceTrim *string `form:"ConferenceTrim,omitempty"` EarlyMedia *string `form:"EarlyMedia,omitempty"` EndConferenceOnExit *bool `form:"EndConferenceOnExit,omitempty"` From string `validate:"required" form:"From"` JitterBufferSize *string `form:"JitterBufferSize,omitempty"` Label *string `form:"Label,omitempty"` MaxParticipants *int `form:"MaxParticipants,omitempty"` Muted *bool `form:"Muted,omitempty"` Record *bool `form:"Record,omitempty"` RecordingChannels *string `form:"RecordingChannels,omitempty"` RecordingStatusCallback *string `form:"RecordingStatusCallback,omitempty"` RecordingStatusCallbackEvents *[]string `form:"RecordingStatusCallbackEvent,omitempty"` RecordingStatusCallbackMethod *string `form:"RecordingStatusCallbackMethod,omitempty"` RecordingTrack *string `form:"RecordingTrack,omitempty"` Region *string `form:"Region,omitempty"` SipAuthPassword *string `form:"SipAuthPassword,omitempty"` SipAuthUsername *string `form:"SipAuthUsername,omitempty"` StartConferenceOnEnter *bool `form:"StartConferenceOnEnter,omitempty"` StatusCallback *string `form:"StatusCallback,omitempty"` StatusCallbackEvents *[]string `form:"StatusCallbackEvent,omitempty"` StatusCallbackMethod *string `form:"StatusCallbackMethod,omitempty"` Timeout *int `form:"Timeout,omitempty"` To string `validate:"required" form:"To"` WaitMethod *string `form:"WaitMethod,omitempty"` WaitURL *string `form:"WaitUrl,omitempty"` }
CreateParticipantInput defines input fields for adding a new participant
type CreateParticipantResponse ¶
type CreateParticipantResponse struct { AccountSid string `json:"account_sid"` CallSid string `json:"call_sid"` CallSidToCoach *string `json:"call_sid_to_coach,omitempty"` Coaching bool `json:"coaching"` ConferenceSid string `json:"conference_sid"` DateCreated utils.RFC2822Time `json:"date_created"` DateUpdated *utils.RFC2822Time `json:"date_updated,omitempty"` EndConferenceOnExit bool `json:"end_conference_on_exit"` Hold bool `json:"hold"` Label *string `json:"label,omitempty"` Muted bool `json:"muted"` StartConferenceOnEnter bool `json:"start_conference_on_enter"` Status string `json:"status"` }
CreateParticipantResponse defines the response fields for adding a new participant
type PageParticipantResponse ¶
type PageParticipantResponse struct { AccountSid string `json:"account_sid"` CallSid string `json:"call_sid"` CallSidToCoach *string `json:"call_sid_to_coach,omitempty"` Coaching bool `json:"coaching"` ConferenceSid string `json:"conference_sid"` DateCreated utils.RFC2822Time `json:"date_created"` DateUpdated *utils.RFC2822Time `json:"date_updated,omitempty"` EndConferenceOnExit bool `json:"end_conference_on_exit"` Hold bool `json:"hold"` Label *string `json:"label,omitempty"` Muted bool `json:"muted"` StartConferenceOnEnter bool `json:"start_conference_on_enter"` Status string `json:"status"` }
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 Muted *bool Hold *bool Coaching *bool }
ParticipantsPageOptions defines the query options for the api operation
type ParticipantsPageResponse ¶
type ParticipantsPageResponse struct { End int `json:"end"` FirstPageURI string `json:"first_page_uri"` NextPageURI *string `json:"next_page_uri,omitempty"` Page int `json:"page"` PageSize int `json:"page_size"` Participants []PageParticipantResponse `json:"participants"` PreviousPageURI *string `json:"previous_page_uri,omitempty"` Start int `json:"start"` URI string `json:"uri"` }
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 ¶
func (p *ParticipantsPaginator) CurrentPage() *ParticipantsPageResponse
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