interaction

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package interaction contains auto-generated files. DO NOT MODIFY

Package interaction contains auto-generated files. DO NOT MODIFY

Package interaction 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 interaction resource See https://www.twilio.com/docs/proxy/api/interaction for more details

func New

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

New creates a new instance of the interaction client

func (Client) Delete

func (c Client) Delete() error

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

func (Client) Fetch

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

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

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

type ClientProperties

type ClientProperties struct {
	ServiceSid string
	SessionSid string
	Sid        string
}

ClientProperties are the properties required to manage the interaction resources

type FetchInteractionResponse

type FetchInteractionResponse struct {
	AccountSid             string     `json:"account_sid"`
	Data                   *string    `json:"data,omitempty"`
	DateCreated            time.Time  `json:"date_created"`
	DateUpdated            *time.Time `json:"date_updated,omitempty"`
	InboundParticipantSid  *string    `json:"inbound_participant_sid,omitempty"`
	InboundResourceSid     *string    `json:"inbound_resource_sid,omitempty"`
	InboundResourceStatus  *string    `json:"inbound_resource_status,omitempty"`
	InboundResourceType    *string    `json:"inbound_resource_type,omitempty"`
	InboundResourceURL     *string    `json:"inbound_resource_url,omitempty"`
	OutboundParticipantSid *string    `json:"outbound_participant_sid,omitempty"`
	OutboundResourceSid    *string    `json:"outbound_resource_sid,omitempty"`
	OutboundResourceStatus *string    `json:"outbound_resource_status,omitempty"`
	OutboundResourceType   *string    `json:"outbound_resource_type,omitempty"`
	OutboundResourceURL    *string    `json:"outbound_resource_url,omitempty"`
	ServiceSid             string     `json:"service_sid"`
	SessionSid             string     `json:"session_sid"`
	Sid                    string     `json:"sid"`
	Type                   *string    `json:"type,omitempty"`
	URL                    string     `json:"url"`
}

FetchInteractionResponse defines the response fields for the retrieved interaction

Jump to

Keyboard shortcuts

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