Documentation
¶
Overview ¶
Package recording contains auto-generated files. DO NOT MODIFY
Package recording contains auto-generated files. DO NOT MODIFY
Package recording contains auto-generated files. DO NOT MODIFY
Package recording contains auto-generated files. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Delete() error
- func (c Client) DeleteWithContext(context context.Context) error
- func (c Client) Fetch() (*FetchRecordingResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchRecordingResponse, error)
- func (c Client) Update(input *UpdateRecordingInput) (*UpdateRecordingResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateRecordingInput) (*UpdateRecordingResponse, error)
- type ClientProperties
- type FetchRecordingResponse
- type UpdateRecordingInput
- type UpdateRecordingResponse
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 recording resource 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 recording client
func (Client) Delete ¶
Delete removes a recording resource from the account See https://www.twilio.com/docs/voice/api/recording#delete-a-recording-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 recording resource from the account See https://www.twilio.com/docs/voice/api/recording#delete-a-recording-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchRecordingResponse, error)
Fetch retrieves a recording resource See https://www.twilio.com/docs/voice/api/recording#fetch-a-recording-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) (*FetchRecordingResponse, error)
FetchWithContext retrieves a recording resource See https://www.twilio.com/docs/voice/api/recording#fetch-a-recording-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateRecordingInput) (*UpdateRecordingResponse, error)
Update modifies a recording resource See https://www.twilio.com/docs/voice/api/recording#update-a-recording-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 *UpdateRecordingInput) (*UpdateRecordingResponse, error)
UpdateWithContext modifies a recording resource See https://www.twilio.com/docs/voice/api/recording#update-a-recording-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the recording resources
type FetchRecordingResponse ¶
type FetchRecordingResponse 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"` }
FetchRecordingResponse defines the response fields for retrieving a recording
type UpdateRecordingInput ¶
type UpdateRecordingInput struct { PauseBehavior *string `form:"PauseBehavior,omitempty"` Status string `validate:"required" form:"Status"` }
UpdateRecordingInput defines input fields for updating a recording
type UpdateRecordingResponse ¶
type UpdateRecordingResponse 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"` }
UpdateRecordingResponse defines the response fields for the updated recording