recording

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

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

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

func (c Client) Delete() error

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

func (c Client) DeleteWithContext(context context.Context) error

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

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

type ClientProperties struct {
	AccountSid string
	Sid        string
}

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

Jump to

Keyboard shortcuts

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