media_attachment

package
v0.23.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package media_attachment contains auto-generated files. DO NOT MODIFY

Package media_attachment contains auto-generated files. DO NOT MODIFY

Package media_attachment 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 message media attachment resource See https://www.twilio.com/docs/sms/api/media-resource for more details

func New

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

New creates a new instance of the media attachment client

func (Client) Delete

func (c Client) Delete() error

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

func (Client) Fetch

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

Fetch retrieves a media attachment resource See https://www.twilio.com/docs/sms/api/media-resource#fetch-a-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 attachment resource See https://www.twilio.com/docs/sms/api/media-resource#fetch-a-media-resource for more details

type ClientProperties

type ClientProperties struct {
	AccountSid string
	MessageSid string
	Sid        string
}

ClientProperties are the properties required to manage the media attachment resources

type FetchMediaResponse

type FetchMediaResponse struct {
	AccountSid  string             `json:"account_sid"`
	ContentType string             `json:"content_type"`
	DateCreated utils.RFC2822Time  `json:"date_created"`
	DateUpdated *utils.RFC2822Time `json:"date_updated,omitempty"`
	ParentSid   string             `json:"parent_sid"`
	Sid         string             `json:"sid"`
}

FetchMediaResponse defines the response fields for the retrieved media attachment

Jump to

Keyboard shortcuts

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