Documentation
¶
Overview ¶
Package recordings contains auto-generated files. DO NOT MODIFY
Package recordings contains auto-generated files. DO NOT MODIFY
Index ¶
- type Client
- func (c *Client) NewRecordingsPaginator() *RecordingsPaginator
- func (c *Client) NewRecordingsPaginatorWithOptions(options *RecordingsPageOptions) *RecordingsPaginator
- func (c Client) Page(options *RecordingsPageOptions) (*RecordingsPageResponse, error)
- func (c Client) PageWithContext(context context.Context, options *RecordingsPageOptions) (*RecordingsPageResponse, error)
- type ClientProperties
- type PageRecordingResponse
- type RecordingsPage
- type RecordingsPageOptions
- type RecordingsPageResponse
- type RecordingsPaginator
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 recording resources See https://www.twilio.com/docs/voice/api/recording for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the recordings client
func (*Client) NewRecordingsPaginator ¶
func (c *Client) NewRecordingsPaginator() *RecordingsPaginator
NewRecordingsPaginator creates a new instance of the paginator for Page.
func (*Client) NewRecordingsPaginatorWithOptions ¶
func (c *Client) NewRecordingsPaginatorWithOptions(options *RecordingsPageOptions) *RecordingsPaginator
NewRecordingsPaginatorWithOptions creates a new instance of the paginator for Page with options.
func (Client) Page ¶
func (c Client) Page(options *RecordingsPageOptions) (*RecordingsPageResponse, error)
Page retrieves a page of recordings See https://www.twilio.com/docs/voice/api/recording#read-multiple-recording-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 *RecordingsPageOptions) (*RecordingsPageResponse, error)
PageWithContext retrieves a page of recordings See https://www.twilio.com/docs/voice/api/recording#read-multiple-recording-resources for more details
type ClientProperties ¶
type ClientProperties struct {
AccountSid string
}
ClientProperties are the properties required to manage the recordings resources
type PageRecordingResponse ¶
type PageRecordingResponse struct { APIVersion string `json:"api_version"` CallSid string `json:"call_sid"` Channels int `json:"channels"` ConferenceSid *string `json:"conference_sid,omitempty"` DateCreated utils.RFC2822Time `json:"date_created"` DateUpdated *utils.RFC2822Time `json:"date_updated,omitempty"` Duration *string `json:"duration,omitempty"` EncryptionDetails *map[string]interface{} `json:"encryption_details,omitempty"` ErrorCode *string `json:"error_code,omitempty"` Price *string `json:"price,omitempty"` PriceUnit *string `json:"price_unit,omitempty"` Sid string `json:"sid"` Source string `json:"source"` StartTime utils.RFC2822Time `json:"start_time"` Status string `json:"status"` }
type RecordingsPage ¶
type RecordingsPage struct { CurrentPage *RecordingsPageResponse Error error // contains filtered or unexported fields }
RecordingsPage defines the fields for the page The CurrentPage and Error fields can be used to access the PageRecordingResponse or error that is returned from the api call(s)
type RecordingsPageOptions ¶
type RecordingsPageOptions struct { PageSize *int Page *int PageToken *string DateCreated *string CallSid *string ConferenceSid *string }
RecordingsPageOptions defines the query options for the api operation
type RecordingsPageResponse ¶
type RecordingsPageResponse 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"` PreviousPageURI *string `json:"previous_page_uri,omitempty"` Recordings []PageRecordingResponse `json:"recordings"` Start int `json:"start"` URI string `json:"uri"` }
RecordingsPageResponse defines the response fields for the recordings page
type RecordingsPaginator ¶
type RecordingsPaginator struct { Page *RecordingsPage Recordings []PageRecordingResponse // contains filtered or unexported fields }
RecordingsPaginator defines the fields for makings paginated api calls Recordings is an array of recordings that have been returned from all of the page calls
func (*RecordingsPaginator) CurrentPage ¶
func (p *RecordingsPaginator) CurrentPage() *RecordingsPageResponse
CurrentPage retrieves the results for the current page
func (*RecordingsPaginator) Error ¶
func (p *RecordingsPaginator) Error() error
Error retrieves the error returned from the page
func (*RecordingsPaginator) Next ¶
func (p *RecordingsPaginator) 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 (*RecordingsPaginator) NextWithContext ¶
func (p *RecordingsPaginator) 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