dialogue

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: 3 Imported by: 0

Documentation

Overview

Package dialogue contains auto-generated files. DO NOT MODIFY

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

func New

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

New creates a new instance of the dialogue client

func (Client) Fetch

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

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

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

type ClientProperties

type ClientProperties struct {
	AssistantSid string
	Sid          string
}

ClientProperties are the properties required to manage the dialogue resources

type FetchDialogueResponse

type FetchDialogueResponse struct {
	AccountSid   string                 `json:"account_sid"`
	AssistantSid string                 `json:"assistant_sid"`
	Data         map[string]interface{} `json:"data"`
	Sid          string                 `json:"sid"`
	URL          string                 `json:"url"`
}

FetchDialogueResponse defines the response fields for the retrieved dialogue

Jump to

Keyboard shortcuts

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