conversation

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Overview

This is an autogenerated file. DO NOT MODIFY

This is an autogenerated file. DO NOT MODIFY

This is an autogenerated file. DO NOT MODIFY

This is an autogenerated file. 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 {
	Message      func(string) *message.Client
	Messages     *messages.Client
	Participant  func(string) *participant.Client
	Participants *participants.Client
	Webhook      func(string) *webhook.Client
	Webhooks     *webhooks.Client
	// contains filtered or unexported fields
}

Client for managing a specific conversation resource See https://www.twilio.com/docs/conversations/api/conversation-resource for more details

func New

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

New creates a new instance of the conversation client

func (Client) Delete

func (c Client) Delete() error

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

func (Client) Fetch

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

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

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

func (Client) Update

Update modifies a conversation resource See https://www.twilio.com/docs/conversations/api/conversation-resource#update-conversation for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) UpdateWithContext

func (c Client) UpdateWithContext(context context.Context, input *UpdateConversationInput) (*UpdateConversationResponse, error)

UpdateWithContext modifies a conversation resource See https://www.twilio.com/docs/conversations/api/conversation-resource#update-conversation for more details

type ClientProperties

type ClientProperties struct {
	Sid string
}

ClientProperties are the properties required to manage the conversation resources

type FetchConversationResponse

type FetchConversationResponse struct {
	AccountSid          string                          `json:"account_sid"`
	Attributes          string                          `json:"attributes"`
	ChatServiceSid      *string                         `json:"chat_service_sid,omitempty"`
	DateCreated         time.Time                       `json:"date_created"`
	DateUpdated         *time.Time                      `json:"date_updated,omitempty"`
	FriendlyName        *string                         `json:"friendly_name,omitempty"`
	MessagingServiceSid *string                         `json:"messaging_service_sid,omitempty"`
	Sid                 string                          `json:"sid"`
	State               string                          `json:"state"`
	Timers              FetchConversationResponseTimers `json:"timers"`
	URL                 string                          `json:"url"`
}

FetchConversationResponse defines the response fields for the retrieved conversation

type FetchConversationResponseTimers

type FetchConversationResponseTimers struct {
	DateClosed   *time.Time `json:"date_closed,omitempty"`
	DateInactive *time.Time `json:"date_inactive,omitempty"`
}

type UpdateConversationInput

type UpdateConversationInput struct {
	Attributes          *string            `form:"Attributes,omitempty"`
	DateCreated         *utils.RFC2822Time `form:"DateCreated,omitempty"`
	DateUpdated         *utils.RFC2822Time `form:"DateUpdated,omitempty"`
	FriendlyName        *string            `form:"FriendlyName,omitempty"`
	MessagingServiceSid *string            `form:"MessagingServiceSid,omitempty"`
	State               *string            `form:"State,omitempty"`
	TimersClosed        *string            `form:"Timers.Closed,omitempty"`
	TimersInactive      *string            `form:"Timers.Inactive,omitempty"`
}

UpdateConversationInput defines input fields for updating a conversation resource

type UpdateConversationResponse

type UpdateConversationResponse struct {
	AccountSid          string                           `json:"account_sid"`
	Attributes          string                           `json:"attributes"`
	ChatServiceSid      *string                          `json:"chat_service_sid,omitempty"`
	DateCreated         time.Time                        `json:"date_created"`
	DateUpdated         *time.Time                       `json:"date_updated,omitempty"`
	FriendlyName        *string                          `json:"friendly_name,omitempty"`
	MessagingServiceSid *string                          `json:"messaging_service_sid,omitempty"`
	Sid                 string                           `json:"sid"`
	State               string                           `json:"state"`
	Timers              UpdateConversationResponseTimers `json:"timers"`
	URL                 string                           `json:"url"`
}

UpdateConversationResponse defines the response fields for the updated conversation

type UpdateConversationResponseTimers

type UpdateConversationResponseTimers struct {
	DateClosed   *time.Time `json:"date_closed,omitempty"`
	DateInactive *time.Time `json:"date_inactive,omitempty"`
}

Directories

Path Synopsis
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.
This is an autogenerated file.

Jump to

Keyboard shortcuts

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