recording

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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) 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

type ClientProperties

type ClientProperties struct {
	AccountSid string
	CallSid    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

Jump to

Keyboard shortcuts

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