Documentation ¶
Overview ¶
Package media_file contains auto-generated files. DO NOT MODIFY
Package media_file contains auto-generated files. DO NOT MODIFY
Package media_file 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 media resource See https://www.twilio.com/docs/fax/api/fax-media-resource for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the media file client
func (Client) Delete ¶
Delete removes a media resource from the account See https://www.twilio.com/docs/fax/api/fax-media-resource#delete-a-fax-media-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 media resource from the account See https://www.twilio.com/docs/fax/api/fax-media-resource#delete-a-fax-media-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchMediaResponse, error)
Fetch retrieves a media resource See https://www.twilio.com/docs/fax/api/fax-media-resource#fetch-a-fax-media-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) (*FetchMediaResponse, error)
FetchWithContext retrieves a media resource See https://www.twilio.com/docs/fax/api/fax-media-resource#fetch-a-fax-media-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the media file resources
type FetchMediaResponse ¶
type FetchMediaResponse struct { AccountSid string `json:"account_sid"` ContentType string `json:"content_type"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` FaxSid string `json:"fax_sid"` Sid string `json:"sid"` URL string `json:"url"` }
FetchMediaResponse defines the response fields for the retrieved media