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