call

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: 8 Imported by: 1

Documentation

Overview

Package call contains auto-generated files. DO NOT MODIFY

Package call contains auto-generated files. DO NOT MODIFY

Package call contains auto-generated files. DO NOT MODIFY

Package call 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 {
	Feedback   func() *feedback.Client
	Feedbacks  *feedbacks.Client
	Recording  func(string) *recording.Client
	Recordings *recordings.Client
	// contains filtered or unexported fields
}

Client for managing a specific call resource See https://www.twilio.com/docs/voice/api/call-resource for more details

func New

func New(client *client.Client, properties ClientProperties) *Client

New creates a new instance of the call client

func (Client) Delete

func (c Client) Delete() error

Delete removes a call resource from the account See https://www.twilio.com/docs/voice/api/call-resource#delete-a-call-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 call resource from the account See https://www.twilio.com/docs/voice/api/call-resource#delete-a-call-resource for more details

func (Client) Fetch

func (c Client) Fetch() (*FetchCallResponse, error)

Fetch retrieves a call resource See https://www.twilio.com/docs/voice/api/call-resource#fetch-a-call-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) (*FetchCallResponse, error)

FetchWithContext retrieves a call resource See https://www.twilio.com/docs/voice/api/call-resource#fetch-a-call-resource for more details

func (Client) Update

func (c Client) Update(input *UpdateCallInput) (*UpdateCallResponse, error)

Update modifies a call resource See https://www.twilio.com/docs/voice/api/call-resource#update-a-call-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 *UpdateCallInput) (*UpdateCallResponse, error)

UpdateWithContext modifies a call resource See https://www.twilio.com/docs/voice/api/call-resource#update-a-call-resource for more details

type ClientProperties

type ClientProperties struct {
	AccountSid string
	Sid        string
}

ClientProperties are the properties required to manage the call resources

type FetchCallResponse

type FetchCallResponse struct {
	APIVersion     string             `json:"api_version"`
	AccountSid     string             `json:"account_sid"`
	AnsweredBy     *string            `json:"answered_by,omitempty"`
	CallerName     *string            `json:"caller_name,omitempty"`
	DateCreated    utils.RFC2822Time  `json:"date_created"`
	DateUpdated    *utils.RFC2822Time `json:"date_updated,omitempty"`
	Direction      string             `json:"direction"`
	Duration       string             `json:"duration"`
	EndTime        *utils.RFC2822Time `json:"end_time,omitempty"`
	ForwardedFrom  *string            `json:"forwarded_from,omitempty"`
	From           string             `json:"from"`
	FromFormatted  string             `json:"from_formatted"`
	GroupSid       *string            `json:"group_sid,omitempty"`
	ParentCallSid  *string            `json:"parent_call_sid,omitempty"`
	PhoneNumberSid string             `json:"phone_number_sid"`
	Price          *string            `json:"price,omitempty"`
	PriceUnit      *string            `json:"price_unit,omitempty"`
	QueueTime      string             `json:"queue_time"`
	Sid            string             `json:"sid"`
	StartTime      *utils.RFC2822Time `json:"start_time,omitempty"`
	Status         string             `json:"status"`
	To             string             `json:"to"`
	ToFormatted    string             `json:"to_formatted"`
	TrunkSid       *string            `json:"trunk_sid,omitempty"`
}

FetchCallResponse defines the response fields for retrieving a call

type UpdateCallInput

type UpdateCallInput struct {
	FallbackMethod       *string `form:"FallbackMethod,omitempty"`
	FallbackURL          *string `form:"FallbackUrl,omitempty"`
	Method               *string `form:"Method,omitempty"`
	Status               *string `form:"Status,omitempty"`
	StatusCallback       *string `form:"StatusCallback,omitempty"`
	StatusCallbackMethod *string `form:"StatusCallbackMethod,omitempty"`
	TwiML                *string `form:"Twiml,omitempty"`
	URL                  *string `form:"Url,omitempty"`
}

UpdateCallInput defines input fields for updating a call

type UpdateCallResponse

type UpdateCallResponse struct {
	APIVersion     string             `json:"api_version"`
	AccountSid     string             `json:"account_sid"`
	AnsweredBy     *string            `json:"answered_by,omitempty"`
	CallerName     *string            `json:"caller_name,omitempty"`
	DateCreated    utils.RFC2822Time  `json:"date_created"`
	DateUpdated    *utils.RFC2822Time `json:"date_updated,omitempty"`
	Direction      string             `json:"direction"`
	Duration       string             `json:"duration"`
	EndTime        *utils.RFC2822Time `json:"end_time,omitempty"`
	ForwardedFrom  *string            `json:"forwarded_from,omitempty"`
	From           string             `json:"from"`
	FromFormatted  string             `json:"from_formatted"`
	GroupSid       *string            `json:"group_sid,omitempty"`
	ParentCallSid  *string            `json:"parent_call_sid,omitempty"`
	PhoneNumberSid string             `json:"phone_number_sid"`
	Price          *string            `json:"price,omitempty"`
	PriceUnit      *string            `json:"price_unit,omitempty"`
	QueueTime      string             `json:"queue_time"`
	Sid            string             `json:"sid"`
	StartTime      *utils.RFC2822Time `json:"start_time,omitempty"`
	Status         string             `json:"status"`
	To             string             `json:"to"`
	ToFormatted    string             `json:"to_formatted"`
	TrunkSid       *string            `json:"trunk_sid,omitempty"`
}

UpdateCallResponse defines the response fields for the updated call

Directories

Path Synopsis
Package feedback contains auto-generated files.
Package feedback contains auto-generated files.
Package feedbacks contains auto-generated files.
Package feedbacks contains auto-generated files.
Package recording contains auto-generated files.
Package recording contains auto-generated files.
Package recordings contains auto-generated files.
Package recordings contains auto-generated files.

Jump to

Keyboard shortcuts

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