delivery_receipt

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package delivery_receipt contains auto-generated files. DO NOT MODIFY

Package delivery_receipt 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 delivery receipt resource See https://www.twilio.com/docs/conversations/api/receipt-resource for more details

func New

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

New creates a new instance of the delivery receipt client

func (Client) Fetch

Fetch retrieves a delivery receipt resource See https://www.twilio.com/docs/conversations/api/receipt-resource#fetch-a-conversationmessagereceipt-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) (*FetchDeliveryReceiptResponse, error)

FetchWithContext retrieves a delivery receipt resource See https://www.twilio.com/docs/conversations/api/receipt-resource#fetch-a-conversationmessagereceipt-resource for more details

type ClientProperties

type ClientProperties struct {
	ConversationSid string
	MessageSid      string
	Sid             string
}

ClientProperties are the properties required to manage the delivery receipt resources

type FetchDeliveryReceiptResponse

type FetchDeliveryReceiptResponse struct {
	AccountSid        *string    `json:"account_sid,omitempty"`
	ChannelMessageSid string     `json:"channel_message_sid"`
	ConversationSid   string     `json:"conversation_sid"`
	DateCreated       time.Time  `json:"date_created"`
	DateUpdated       *time.Time `json:"date_updated,omitempty"`
	ErrorCode         *int       `json:"error_code,omitempty"`
	MessageSid        string     `json:"message_sid"`
	ParticipantSid    string     `json:"participant_sid"`
	Sid               string     `json:"sid"`
	Status            string     `json:"status"`
	URL               string     `json:"url"`
}

FetchDeliveryReceiptResponse defines the response fields for the retrieved delivery receipt

Jump to

Keyboard shortcuts

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