openapi

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 6 Imported by: 1

README

Go API client for openapi

This is the public Twilio REST API.

Overview

This API client was generated by the OpenAPI Generator project from the OpenAPI specs located at twilio/twilio-oai. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.17.0
  • Package version: 1.0.0
  • Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit https://support.twilio.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import "./openapi"

Documentation for API Endpoints

All URIs are relative to https://conversations.twilio.com

Class Method HTTP request Description
DefaultApi CreateConversation Post /v1/Conversations
DefaultApi CreateConversationMessage Post /v1/Conversations/{ConversationSid}/Messages
DefaultApi CreateConversationParticipant Post /v1/Conversations/{ConversationSid}/Participants
DefaultApi CreateConversationScopedWebhook Post /v1/Conversations/{ConversationSid}/Webhooks
DefaultApi CreateCredential Post /v1/Credentials
DefaultApi CreateRole Post /v1/Roles
DefaultApi CreateService Post /v1/Services
DefaultApi CreateServiceConversation Post /v1/Services/{ChatServiceSid}/Conversations
DefaultApi CreateServiceConversationMessage Post /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages
DefaultApi CreateServiceConversationParticipant Post /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants
DefaultApi CreateServiceConversationScopedWebhook Post /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks
DefaultApi CreateServiceRole Post /v1/Services/{ChatServiceSid}/Roles
DefaultApi CreateServiceUser Post /v1/Services/{ChatServiceSid}/Users
DefaultApi CreateUser Post /v1/Users
DefaultApi DeleteConversation Delete /v1/Conversations/{Sid}
DefaultApi DeleteConversationMessage Delete /v1/Conversations/{ConversationSid}/Messages/{Sid}
DefaultApi DeleteConversationParticipant Delete /v1/Conversations/{ConversationSid}/Participants/{Sid}
DefaultApi DeleteConversationScopedWebhook Delete /v1/Conversations/{ConversationSid}/Webhooks/{Sid}
DefaultApi DeleteCredential Delete /v1/Credentials/{Sid}
DefaultApi DeleteRole Delete /v1/Roles/{Sid}
DefaultApi DeleteService Delete /v1/Services/{Sid}
DefaultApi DeleteServiceBinding Delete /v1/Services/{ChatServiceSid}/Bindings/{Sid}
DefaultApi DeleteServiceConversation Delete /v1/Services/{ChatServiceSid}/Conversations/{Sid}
DefaultApi DeleteServiceConversationMessage Delete /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}
DefaultApi DeleteServiceConversationParticipant Delete /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}
DefaultApi DeleteServiceConversationScopedWebhook Delete /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}
DefaultApi DeleteServiceRole Delete /v1/Services/{ChatServiceSid}/Roles/{Sid}
DefaultApi DeleteServiceUser Delete /v1/Services/{ChatServiceSid}/Users/{Sid}
DefaultApi DeleteUser Delete /v1/Users/{Sid}
DefaultApi FetchConfiguration Get /v1/Configuration
DefaultApi FetchConfigurationWebhook Get /v1/Configuration/Webhooks
DefaultApi FetchConversation Get /v1/Conversations/{Sid}
DefaultApi FetchConversationMessage Get /v1/Conversations/{ConversationSid}/Messages/{Sid}
DefaultApi FetchConversationMessageReceipt Get /v1/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts/{Sid}
DefaultApi FetchConversationParticipant Get /v1/Conversations/{ConversationSid}/Participants/{Sid}
DefaultApi FetchConversationScopedWebhook Get /v1/Conversations/{ConversationSid}/Webhooks/{Sid}
DefaultApi FetchCredential Get /v1/Credentials/{Sid}
DefaultApi FetchRole Get /v1/Roles/{Sid}
DefaultApi FetchService Get /v1/Services/{Sid}
DefaultApi FetchServiceBinding Get /v1/Services/{ChatServiceSid}/Bindings/{Sid}
DefaultApi FetchServiceConfiguration Get /v1/Services/{ChatServiceSid}/Configuration
DefaultApi FetchServiceConversation Get /v1/Services/{ChatServiceSid}/Conversations/{Sid}
DefaultApi FetchServiceConversationMessage Get /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}
DefaultApi FetchServiceConversationMessageReceipt Get /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts/{Sid}
DefaultApi FetchServiceConversationParticipant Get /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}
DefaultApi FetchServiceConversationScopedWebhook Get /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}
DefaultApi FetchServiceNotification Get /v1/Services/{ChatServiceSid}/Configuration/Notifications
DefaultApi FetchServiceRole Get /v1/Services/{ChatServiceSid}/Roles/{Sid}
DefaultApi FetchServiceUser Get /v1/Services/{ChatServiceSid}/Users/{Sid}
DefaultApi FetchUser Get /v1/Users/{Sid}
DefaultApi ListConversation Get /v1/Conversations
DefaultApi ListConversationMessage Get /v1/Conversations/{ConversationSid}/Messages
DefaultApi ListConversationMessageReceipt Get /v1/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts
DefaultApi ListConversationParticipant Get /v1/Conversations/{ConversationSid}/Participants
DefaultApi ListConversationScopedWebhook Get /v1/Conversations/{ConversationSid}/Webhooks
DefaultApi ListCredential Get /v1/Credentials
DefaultApi ListRole Get /v1/Roles
DefaultApi ListService Get /v1/Services
DefaultApi ListServiceBinding Get /v1/Services/{ChatServiceSid}/Bindings
DefaultApi ListServiceConversation Get /v1/Services/{ChatServiceSid}/Conversations
DefaultApi ListServiceConversationMessage Get /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages
DefaultApi ListServiceConversationMessageReceipt Get /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts
DefaultApi ListServiceConversationParticipant Get /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants
DefaultApi ListServiceConversationScopedWebhook Get /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks
DefaultApi ListServiceRole Get /v1/Services/{ChatServiceSid}/Roles
DefaultApi ListServiceUser Get /v1/Services/{ChatServiceSid}/Users
DefaultApi ListUser Get /v1/Users
DefaultApi UpdateConfiguration Post /v1/Configuration
DefaultApi UpdateConfigurationWebhook Post /v1/Configuration/Webhooks
DefaultApi UpdateConversation Post /v1/Conversations/{Sid}
DefaultApi UpdateConversationMessage Post /v1/Conversations/{ConversationSid}/Messages/{Sid}
DefaultApi UpdateConversationParticipant Post /v1/Conversations/{ConversationSid}/Participants/{Sid}
DefaultApi UpdateConversationScopedWebhook Post /v1/Conversations/{ConversationSid}/Webhooks/{Sid}
DefaultApi UpdateCredential Post /v1/Credentials/{Sid}
DefaultApi UpdateRole Post /v1/Roles/{Sid}
DefaultApi UpdateServiceConfiguration Post /v1/Services/{ChatServiceSid}/Configuration
DefaultApi UpdateServiceConversation Post /v1/Services/{ChatServiceSid}/Conversations/{Sid}
DefaultApi UpdateServiceConversationMessage Post /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}
DefaultApi UpdateServiceConversationParticipant Post /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}
DefaultApi UpdateServiceConversationScopedWebhook Post /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}
DefaultApi UpdateServiceNotification Post /v1/Services/{ChatServiceSid}/Configuration/Notifications
DefaultApi UpdateServiceRole Post /v1/Services/{ChatServiceSid}/Roles/{Sid}
DefaultApi UpdateServiceUser Post /v1/Services/{ChatServiceSid}/Users/{Sid}
DefaultApi UpdateUser Post /v1/Users/{Sid}

Documentation For Models

Documentation For Authorization

accountSid_authToken

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)

Author

support@twilio.com

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConversationsV1Configuration

type ConversationsV1Configuration struct {
	// The SID of the Account responsible for this configuration.
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the default Conversation Service that every new conversation is associated with.
	DefaultChatServiceSid *string `json:"default_chat_service_sid,omitempty"`
	// Default ISO8601 duration when conversation will be switched to `closed` state.
	DefaultClosedTimer *string `json:"default_closed_timer,omitempty"`
	// Default ISO8601 duration when conversation will be switched to `inactive` state.
	DefaultInactiveTimer *string `json:"default_inactive_timer,omitempty"`
	// The SID of the default Messaging Service that every new conversation is associated with.
	DefaultMessagingServiceSid *string `json:"default_messaging_service_sid,omitempty"`
	// Absolute URLs to access the webhook and default service configurations.
	Links *map[string]interface{} `json:"links,omitempty"`
	// An absolute URL for this global configuration.
	Url *string `json:"url,omitempty"`
}

ConversationsV1Configuration struct for ConversationsV1Configuration

type ConversationsV1ConfigurationConfigurationWebhook

type ConversationsV1ConfigurationConfigurationWebhook struct {
	// The unique ID of the Account responsible for this conversation.
	AccountSid *string `json:"account_sid,omitempty"`
	// The list of webhook event triggers that are enabled for this Service.
	Filters *[]string `json:"filters,omitempty"`
	// The HTTP method to be used when sending a webhook request.
	Method *string `json:"method,omitempty"`
	// The absolute url the post-event webhook request should be sent to.
	PostWebhookUrl *string `json:"post_webhook_url,omitempty"`
	// The absolute url the pre-event webhook request should be sent to.
	PreWebhookUrl *string `json:"pre_webhook_url,omitempty"`
	// The routing target of the webhook.
	Target *string `json:"target,omitempty"`
	// An absolute URL for this webhook.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ConfigurationConfigurationWebhook struct for ConversationsV1ConfigurationConfigurationWebhook

type ConversationsV1Conversation

type ConversationsV1Conversation struct {
	// The unique ID of the Account responsible for this conversation.
	AccountSid *string `json:"account_sid,omitempty"`
	// An optional string metadata field you can use to store any data you wish.
	Attributes *string `json:"attributes,omitempty"`
	// The unique ID of the Conversation Service this conversation belongs to.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The human-readable name of this conversation.
	FriendlyName *string `json:"friendly_name,omitempty"`
	// Absolute URLs to access the participants, messages and webhooks of this conversation.
	Links *map[string]interface{} `json:"links,omitempty"`
	// The unique ID of the Messaging Service this conversation belongs to.
	MessagingServiceSid *string `json:"messaging_service_sid,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// Current state of this conversation.
	State *string `json:"state,omitempty"`
	// Timer date values for this conversation.
	Timers *map[string]interface{} `json:"timers,omitempty"`
	// An application-defined string that uniquely identifies the resource
	UniqueName *string `json:"unique_name,omitempty"`
	// An absolute URL for this conversation.
	Url *string `json:"url,omitempty"`
}

ConversationsV1Conversation struct for ConversationsV1Conversation

type ConversationsV1ConversationConversationMessage

type ConversationsV1ConversationConversationMessage struct {
	// The unique ID of the Account responsible for this message.
	AccountSid *string `json:"account_sid,omitempty"`
	// A string metadata field you can use to store any data you wish.
	Attributes *string `json:"attributes,omitempty"`
	// The channel specific identifier of the message's author.
	Author *string `json:"author,omitempty"`
	// The content of the message.
	Body *string `json:"body,omitempty"`
	// The unique ID of the Conversation for this message.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// An object that contains the summary of delivery statuses for the message to non-chat participants.
	Delivery *map[string]interface{} `json:"delivery,omitempty"`
	// The index of the message within the Conversation.
	Index *int32 `json:"index,omitempty"`
	// Absolute URL to access the receipts of this message.
	Links *map[string]interface{} `json:"links,omitempty"`
	// An array of objects that describe the Message's media if attached, otherwise, null.
	Media *[]map[string]interface{} `json:"media,omitempty"`
	// The unique ID of messages's author participant.
	ParticipantSid *string `json:"participant_sid,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// An absolute API URL for this message.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ConversationConversationMessage struct for ConversationsV1ConversationConversationMessage

type ConversationsV1ConversationConversationMessageConversationMessageReceipt

type ConversationsV1ConversationConversationMessageConversationMessageReceipt struct {
	// The unique ID of the Account responsible for this participant.
	AccountSid *string `json:"account_sid,omitempty"`
	// A messaging channel-specific identifier for the message delivered to participant
	ChannelMessageSid *string `json:"channel_message_sid,omitempty"`
	// The unique ID of the Conversation for this message.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The message [delivery error code](https://www.twilio.com/docs/sms/api/message-resource#delivery-related-errors) for a `failed` status
	ErrorCode *int32 `json:"error_code,omitempty"`
	// The SID of the message the delivery receipt belongs to
	MessageSid *string `json:"message_sid,omitempty"`
	// The unique ID of the participant the delivery receipt belongs to.
	ParticipantSid *string `json:"participant_sid,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// The message delivery status
	Status *string `json:"status,omitempty"`
	// An absolute URL for this delivery receipt.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ConversationConversationMessageConversationMessageReceipt struct for ConversationsV1ConversationConversationMessageConversationMessageReceipt

type ConversationsV1ConversationConversationParticipant

type ConversationsV1ConversationConversationParticipant struct {
	// The unique ID of the Account responsible for this participant.
	AccountSid *string `json:"account_sid,omitempty"`
	// An optional string metadata field you can use to store any data you wish.
	Attributes *string `json:"attributes,omitempty"`
	// The unique ID of the Conversation for this participant.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// A unique string identifier for the conversation participant as Conversation User.
	Identity *string `json:"identity,omitempty"`
	// Index of last “read” message in the Conversation for the Participant.
	LastReadMessageIndex *int32 `json:"last_read_message_index,omitempty"`
	// Timestamp of last “read” message in the Conversation for the Participant.
	LastReadTimestamp *string `json:"last_read_timestamp,omitempty"`
	// Information about how this participant exchanges messages with the conversation.
	MessagingBinding *map[string]interface{} `json:"messaging_binding,omitempty"`
	// The SID of a conversation-level Role to assign to the participant
	RoleSid *string `json:"role_sid,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// An absolute URL for this participant.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ConversationConversationParticipant struct for ConversationsV1ConversationConversationParticipant

type ConversationsV1ConversationConversationScopedWebhook

type ConversationsV1ConversationConversationScopedWebhook struct {
	// The unique ID of the Account responsible for this conversation.
	AccountSid *string `json:"account_sid,omitempty"`
	// The configuration of this webhook.
	Configuration *map[string]interface{} `json:"configuration,omitempty"`
	// The unique ID of the Conversation for this webhook.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// The target of this webhook.
	Target *string `json:"target,omitempty"`
	// An absolute URL for this webhook.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ConversationConversationScopedWebhook struct for ConversationsV1ConversationConversationScopedWebhook

type ConversationsV1Credential

type ConversationsV1Credential struct {
	// The unique ID of the Account responsible for this credential.
	AccountSid *string `json:"account_sid,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The human-readable name of this credential.
	FriendlyName *string `json:"friendly_name,omitempty"`
	// [APN only] Whether to send the credential to sandbox APNs.
	Sandbox *string `json:"sandbox,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// The type of push-notification service the credential is for.
	Type *string `json:"type,omitempty"`
	// An absolute URL for this credential.
	Url *string `json:"url,omitempty"`
}

ConversationsV1Credential struct for ConversationsV1Credential

type ConversationsV1Role

type ConversationsV1Role struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the Conversation Service that the resource is associated with
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The string that you assigned to describe the resource
	FriendlyName *string `json:"friendly_name,omitempty"`
	// An array of the permissions the role has been granted
	Permissions *[]string `json:"permissions,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// The type of role
	Type *string `json:"type,omitempty"`
	// An absolute URL for this user role.
	Url *string `json:"url,omitempty"`
}

ConversationsV1Role struct for ConversationsV1Role

type ConversationsV1Service

type ConversationsV1Service struct {
	// The unique ID of the Account responsible for this service.
	AccountSid *string `json:"account_sid,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The human-readable name of this service.
	FriendlyName *string `json:"friendly_name,omitempty"`
	// Absolute URLs to access the conversations, users, roles, bindings and configuration of this service.
	Links *map[string]interface{} `json:"links,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// An absolute URL for this service.
	Url *string `json:"url,omitempty"`
}

ConversationsV1Service struct for ConversationsV1Service

type ConversationsV1ServiceServiceBinding

type ConversationsV1ServiceServiceBinding struct {
	// The unique ID of the Account responsible for this binding.
	AccountSid *string `json:"account_sid,omitempty"`
	// The push technology to use for the binding.
	BindingType *string `json:"binding_type,omitempty"`
	// The SID of the Conversation Service that the resource is associated with.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The SID of the Credential for the binding.
	CredentialSid *string `json:"credential_sid,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The unique endpoint identifier for the Binding.
	Endpoint *string `json:"endpoint,omitempty"`
	// The identity of Conversation User associated with this binding.
	Identity *string `json:"identity,omitempty"`
	// The Conversation message types the binding is subscribed to.
	MessageTypes *[]string `json:"message_types,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// An absolute URL for this binding.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ServiceServiceBinding struct for ConversationsV1ServiceServiceBinding

type ConversationsV1ServiceServiceConfiguration

type ConversationsV1ServiceServiceConfiguration struct {
	// The unique string that identifies the resource
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The service role assigned to users when they are added to the service
	DefaultChatServiceRoleSid *string `json:"default_chat_service_role_sid,omitempty"`
	// The role assigned to a conversation creator user when they join a new conversation
	DefaultConversationCreatorRoleSid *string `json:"default_conversation_creator_role_sid,omitempty"`
	// The role assigned to users when they are added to a conversation
	DefaultConversationRoleSid *string `json:"default_conversation_role_sid,omitempty"`
	// Absolute URL to access the push notifications configuration of this service.
	Links *map[string]interface{} `json:"links,omitempty"`
	// Whether the Reachability Indicator feature is enabled for this Conversations Service
	ReachabilityEnabled *bool `json:"reachability_enabled,omitempty"`
	// An absolute URL for this service configuration.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ServiceServiceConfiguration struct for ConversationsV1ServiceServiceConfiguration

type ConversationsV1ServiceServiceConfigurationServiceNotification

type ConversationsV1ServiceServiceConfigurationServiceNotification struct {
	// The unique ID of the Account responsible for this configuration.
	AccountSid *string `json:"account_sid,omitempty"`
	// The Push Notification configuration for being added to a Conversation.
	AddedToConversation *map[string]interface{} `json:"added_to_conversation,omitempty"`
	// The SID of the Conversation Service that the Configuration applies to.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// Weather the notification logging is enabled.
	LogEnabled *bool `json:"log_enabled,omitempty"`
	// The Push Notification configuration for New Messages.
	NewMessage *map[string]interface{} `json:"new_message,omitempty"`
	// The Push Notification configuration for being removed from a Conversation.
	RemovedFromConversation *map[string]interface{} `json:"removed_from_conversation,omitempty"`
	// An absolute URL for this configuration.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ServiceServiceConfigurationServiceNotification struct for ConversationsV1ServiceServiceConfigurationServiceNotification

type ConversationsV1ServiceServiceConversation

type ConversationsV1ServiceServiceConversation struct {
	// The unique ID of the Account responsible for this conversation.
	AccountSid *string `json:"account_sid,omitempty"`
	// An optional string metadata field you can use to store any data you wish.
	Attributes *string `json:"attributes,omitempty"`
	// The unique ID of the Conversation Service this conversation belongs to.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The human-readable name of this conversation.
	FriendlyName *string `json:"friendly_name,omitempty"`
	// Absolute URLs to access the participants, messages and webhooks of this conversation.
	Links *map[string]interface{} `json:"links,omitempty"`
	// The unique ID of the Messaging Service this conversation belongs to.
	MessagingServiceSid *string `json:"messaging_service_sid,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// Current state of this conversation.
	State *string `json:"state,omitempty"`
	// Timer date values for this conversation.
	Timers *map[string]interface{} `json:"timers,omitempty"`
	// An application-defined string that uniquely identifies the resource
	UniqueName *string `json:"unique_name,omitempty"`
	// An absolute URL for this conversation.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ServiceServiceConversation struct for ConversationsV1ServiceServiceConversation

type ConversationsV1ServiceServiceConversationServiceConversationMessage

type ConversationsV1ServiceServiceConversationServiceConversationMessage struct {
	// The unique ID of the Account responsible for this message.
	AccountSid *string `json:"account_sid,omitempty"`
	// A string metadata field you can use to store any data you wish.
	Attributes *string `json:"attributes,omitempty"`
	// The channel specific identifier of the message's author.
	Author *string `json:"author,omitempty"`
	// The content of the message.
	Body *string `json:"body,omitempty"`
	// The SID of the Conversation Service that the resource is associated with.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The unique ID of the Conversation for this message.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// An object that contains the summary of delivery statuses for the message to non-chat participants.
	Delivery *map[string]interface{} `json:"delivery,omitempty"`
	// The index of the message within the Conversation.
	Index *int32 `json:"index,omitempty"`
	// Absolute URL to access the receipts of this message.
	Links *map[string]interface{} `json:"links,omitempty"`
	// An array of objects that describe the Message's media if attached, otherwise, null.
	Media *[]map[string]interface{} `json:"media,omitempty"`
	// The unique ID of messages's author participant.
	ParticipantSid *string `json:"participant_sid,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// An absolute URL for this message.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ServiceServiceConversationServiceConversationMessage struct for ConversationsV1ServiceServiceConversationServiceConversationMessage

type ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt

type ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt struct {
	// The unique ID of the Account responsible for this participant.
	AccountSid *string `json:"account_sid,omitempty"`
	// A messaging channel-specific identifier for the message delivered to participant
	ChannelMessageSid *string `json:"channel_message_sid,omitempty"`
	// The SID of the Conversation Service that the resource is associated with.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The unique ID of the Conversation for this message.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The message [delivery error code](https://www.twilio.com/docs/sms/api/message-resource#delivery-related-errors) for a `failed` status
	ErrorCode *int32 `json:"error_code,omitempty"`
	// The SID of the message the delivery receipt belongs to
	MessageSid *string `json:"message_sid,omitempty"`
	// The unique ID of the participant the delivery receipt belongs to.
	ParticipantSid *string `json:"participant_sid,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// The message delivery status
	Status *string `json:"status,omitempty"`
	// An absolute URL for this delivery receipt.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt struct for ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt

type ConversationsV1ServiceServiceConversationServiceConversationParticipant

type ConversationsV1ServiceServiceConversationServiceConversationParticipant struct {
	// The unique ID of the Account responsible for this participant.
	AccountSid *string `json:"account_sid,omitempty"`
	// An optional string metadata field you can use to store any data you wish.
	Attributes *string `json:"attributes,omitempty"`
	// The SID of the Conversation Service that the resource is associated with.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The unique ID of the Conversation for this participant.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// A unique string identifier for the conversation participant as Conversation User.
	Identity *string `json:"identity,omitempty"`
	// Index of last “read” message in the Conversation for the Participant.
	LastReadMessageIndex *int32 `json:"last_read_message_index,omitempty"`
	// Timestamp of last “read” message in the Conversation for the Participant.
	LastReadTimestamp *string `json:"last_read_timestamp,omitempty"`
	// Information about how this participant exchanges messages with the conversation.
	MessagingBinding *map[string]interface{} `json:"messaging_binding,omitempty"`
	// The SID of a conversation-level Role to assign to the participant
	RoleSid *string `json:"role_sid,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// An absolute URL for this participant.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ServiceServiceConversationServiceConversationParticipant struct for ConversationsV1ServiceServiceConversationServiceConversationParticipant

type ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook

type ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook struct {
	// The unique ID of the Account responsible for this conversation.
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the Conversation Service that the resource is associated with.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The configuration of this webhook.
	Configuration *map[string]interface{} `json:"configuration,omitempty"`
	// The unique ID of the Conversation for this webhook.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// The target of this webhook.
	Target *string `json:"target,omitempty"`
	// An absolute URL for this webhook.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook struct for ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook

type ConversationsV1ServiceServiceRole

type ConversationsV1ServiceServiceRole struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the Conversation Service that the resource is associated with
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The string that you assigned to describe the resource
	FriendlyName *string `json:"friendly_name,omitempty"`
	// An array of the permissions the role has been granted
	Permissions *[]string `json:"permissions,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// The type of role
	Type *string `json:"type,omitempty"`
	// An absolute URL for this user role.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ServiceServiceRole struct for ConversationsV1ServiceServiceRole

type ConversationsV1ServiceServiceUser

type ConversationsV1ServiceServiceUser struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The JSON Object string that stores application-specific data
	Attributes *string `json:"attributes,omitempty"`
	// The SID of the Conversation Service that the resource is associated with
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The string that you assigned to describe the resource
	FriendlyName *string `json:"friendly_name,omitempty"`
	// The string that identifies the resource's User
	Identity *string `json:"identity,omitempty"`
	// Whether the User has a potentially valid Push Notification registration for this Conversations Service
	IsNotifiable *bool `json:"is_notifiable,omitempty"`
	// Whether the User is actively connected to this Conversations Service and online
	IsOnline *bool `json:"is_online,omitempty"`
	// The SID of a service-level Role assigned to the user
	RoleSid *string `json:"role_sid,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// An absolute URL for this user.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ServiceServiceUser struct for ConversationsV1ServiceServiceUser

type ConversationsV1User

type ConversationsV1User struct {
	// The SID of the Account that created the resource
	AccountSid *string `json:"account_sid,omitempty"`
	// The JSON Object string that stores application-specific data
	Attributes *string `json:"attributes,omitempty"`
	// The SID of the Conversation Service that the resource is associated with
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was created
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The ISO 8601 date and time in GMT when the resource was last updated
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The string that you assigned to describe the resource
	FriendlyName *string `json:"friendly_name,omitempty"`
	// The string that identifies the resource's User
	Identity *string `json:"identity,omitempty"`
	// Whether the User has a potentially valid Push Notification registration for this Conversations Service
	IsNotifiable *bool `json:"is_notifiable,omitempty"`
	// Whether the User is actively connected to this Conversations Service and online
	IsOnline *bool `json:"is_online,omitempty"`
	// The SID of a service-level Role assigned to the user
	RoleSid *string `json:"role_sid,omitempty"`
	// The unique string that identifies the resource
	Sid *string `json:"sid,omitempty"`
	// An absolute URL for this user.
	Url *string `json:"url,omitempty"`
}

ConversationsV1User struct for ConversationsV1User

type CreateConversationMessageParams

type CreateConversationMessageParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The channel specific identifier of the message's author. Defaults to `system`.
	Author *string `json:"Author,omitempty"`
	// The content of the message, can be up to 1,600 characters long.
	Body *string `json:"Body,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated. `null` if the message has not been edited.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// The Media SID to be attached to the new Message.
	MediaSid *string `json:"MediaSid,omitempty"`
}

Optional parameters for the method 'CreateConversationMessage'

func (*CreateConversationMessageParams) SetAttributes

func (params *CreateConversationMessageParams) SetAttributes(Attributes string) *CreateConversationMessageParams

func (*CreateConversationMessageParams) SetAuthor

func (*CreateConversationMessageParams) SetBody

func (*CreateConversationMessageParams) SetDateCreated

func (params *CreateConversationMessageParams) SetDateCreated(DateCreated time.Time) *CreateConversationMessageParams

func (*CreateConversationMessageParams) SetDateUpdated

func (params *CreateConversationMessageParams) SetDateUpdated(DateUpdated time.Time) *CreateConversationMessageParams

func (*CreateConversationMessageParams) SetMediaSid

func (*CreateConversationMessageParams) SetXTwilioWebhookEnabled

func (params *CreateConversationMessageParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *CreateConversationMessageParams

type CreateConversationParams

type CreateConversationParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// The human-readable name of this conversation, limited to 256 characters. Optional.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to.
	MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"`
	// Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active`
	State *string `json:"State,omitempty"`
	// ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
	TimersClosed *string `json:"Timers.Closed,omitempty"`
	// ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
	TimersInactive *string `json:"Timers.Inactive,omitempty"`
	// An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
	UniqueName *string `json:"UniqueName,omitempty"`
}

Optional parameters for the method 'CreateConversation'

func (*CreateConversationParams) SetAttributes

func (params *CreateConversationParams) SetAttributes(Attributes string) *CreateConversationParams

func (*CreateConversationParams) SetDateCreated

func (params *CreateConversationParams) SetDateCreated(DateCreated time.Time) *CreateConversationParams

func (*CreateConversationParams) SetDateUpdated

func (params *CreateConversationParams) SetDateUpdated(DateUpdated time.Time) *CreateConversationParams

func (*CreateConversationParams) SetFriendlyName

func (params *CreateConversationParams) SetFriendlyName(FriendlyName string) *CreateConversationParams

func (*CreateConversationParams) SetMessagingServiceSid

func (params *CreateConversationParams) SetMessagingServiceSid(MessagingServiceSid string) *CreateConversationParams

func (*CreateConversationParams) SetState

func (params *CreateConversationParams) SetState(State string) *CreateConversationParams

func (*CreateConversationParams) SetTimersClosed

func (params *CreateConversationParams) SetTimersClosed(TimersClosed string) *CreateConversationParams

func (*CreateConversationParams) SetTimersInactive

func (params *CreateConversationParams) SetTimersInactive(TimersInactive string) *CreateConversationParams

func (*CreateConversationParams) SetUniqueName

func (params *CreateConversationParams) SetUniqueName(UniqueName string) *CreateConversationParams

func (*CreateConversationParams) SetXTwilioWebhookEnabled

func (params *CreateConversationParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *CreateConversationParams

type CreateConversationParticipantParams

type CreateConversationParticipantParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
	Identity *string `json:"Identity,omitempty"`
	// The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field).
	MessagingBindingAddress *string `json:"MessagingBinding.Address,omitempty"`
	// The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity.
	MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"`
	// The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field).
	MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"`
	// The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant.
	RoleSid *string `json:"RoleSid,omitempty"`
}

Optional parameters for the method 'CreateConversationParticipant'

func (*CreateConversationParticipantParams) SetAttributes

func (*CreateConversationParticipantParams) SetDateCreated

func (*CreateConversationParticipantParams) SetDateUpdated

func (*CreateConversationParticipantParams) SetIdentity

func (*CreateConversationParticipantParams) SetMessagingBindingAddress

func (params *CreateConversationParticipantParams) SetMessagingBindingAddress(MessagingBindingAddress string) *CreateConversationParticipantParams

func (*CreateConversationParticipantParams) SetMessagingBindingProjectedAddress

func (params *CreateConversationParticipantParams) SetMessagingBindingProjectedAddress(MessagingBindingProjectedAddress string) *CreateConversationParticipantParams

func (*CreateConversationParticipantParams) SetMessagingBindingProxyAddress

func (params *CreateConversationParticipantParams) SetMessagingBindingProxyAddress(MessagingBindingProxyAddress string) *CreateConversationParticipantParams

func (*CreateConversationParticipantParams) SetRoleSid

func (*CreateConversationParticipantParams) SetXTwilioWebhookEnabled

func (params *CreateConversationParticipantParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *CreateConversationParticipantParams

type CreateConversationScopedWebhookParams

type CreateConversationScopedWebhookParams struct {
	// The list of events, firing webhook event for this Conversation.
	ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"`
	// The studio flow SID, where the webhook should be sent to.
	ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"`
	// The HTTP method to be used when sending a webhook request.
	ConfigurationMethod *string `json:"Configuration.Method,omitempty"`
	// The message index for which and it's successors the webhook will be replayed. Not set by default
	ConfigurationReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"`
	// The list of keywords, firing webhook event for this Conversation.
	ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"`
	// The absolute url the webhook request should be sent to.
	ConfigurationUrl *string `json:"Configuration.Url,omitempty"`
	// The target of this webhook: `webhook`, `studio`, `trigger`
	Target *string `json:"Target,omitempty"`
}

Optional parameters for the method 'CreateConversationScopedWebhook'

func (*CreateConversationScopedWebhookParams) SetConfigurationFilters

func (params *CreateConversationScopedWebhookParams) SetConfigurationFilters(ConfigurationFilters []string) *CreateConversationScopedWebhookParams

func (*CreateConversationScopedWebhookParams) SetConfigurationFlowSid

func (params *CreateConversationScopedWebhookParams) SetConfigurationFlowSid(ConfigurationFlowSid string) *CreateConversationScopedWebhookParams

func (*CreateConversationScopedWebhookParams) SetConfigurationMethod

func (params *CreateConversationScopedWebhookParams) SetConfigurationMethod(ConfigurationMethod string) *CreateConversationScopedWebhookParams

func (*CreateConversationScopedWebhookParams) SetConfigurationReplayAfter

func (params *CreateConversationScopedWebhookParams) SetConfigurationReplayAfter(ConfigurationReplayAfter int32) *CreateConversationScopedWebhookParams

func (*CreateConversationScopedWebhookParams) SetConfigurationTriggers

func (params *CreateConversationScopedWebhookParams) SetConfigurationTriggers(ConfigurationTriggers []string) *CreateConversationScopedWebhookParams

func (*CreateConversationScopedWebhookParams) SetConfigurationUrl

func (params *CreateConversationScopedWebhookParams) SetConfigurationUrl(ConfigurationUrl string) *CreateConversationScopedWebhookParams

func (*CreateConversationScopedWebhookParams) SetTarget

type CreateCredentialParams

type CreateCredentialParams struct {
	// [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential.
	ApiKey *string `json:"ApiKey,omitempty"`
	// [APN only] The URL encoded representation of the certificate. For example,  `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----`.
	Certificate *string `json:"Certificate,omitempty"`
	// A descriptive string that you create to describe the new resource. It can be up to 64 characters long.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----`.
	PrivateKey *string `json:"PrivateKey,omitempty"`
	// [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production.
	Sandbox *bool `json:"Sandbox,omitempty"`
	// [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging.
	Secret *string `json:"Secret,omitempty"`
	// The type of push-notification service the credential is for. Can be: `fcm`, `gcm`, or `apn`.
	Type *string `json:"Type,omitempty"`
}

Optional parameters for the method 'CreateCredential'

func (*CreateCredentialParams) SetApiKey

func (params *CreateCredentialParams) SetApiKey(ApiKey string) *CreateCredentialParams

func (*CreateCredentialParams) SetCertificate

func (params *CreateCredentialParams) SetCertificate(Certificate string) *CreateCredentialParams

func (*CreateCredentialParams) SetFriendlyName

func (params *CreateCredentialParams) SetFriendlyName(FriendlyName string) *CreateCredentialParams

func (*CreateCredentialParams) SetPrivateKey

func (params *CreateCredentialParams) SetPrivateKey(PrivateKey string) *CreateCredentialParams

func (*CreateCredentialParams) SetSandbox

func (params *CreateCredentialParams) SetSandbox(Sandbox bool) *CreateCredentialParams

func (*CreateCredentialParams) SetSecret

func (params *CreateCredentialParams) SetSecret(Secret string) *CreateCredentialParams

func (*CreateCredentialParams) SetType

func (params *CreateCredentialParams) SetType(Type string) *CreateCredentialParams

type CreateRoleParams

type CreateRoleParams struct {
	// A descriptive string that you create to describe the new resource. It can be up to 64 characters long.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`.
	Permission *[]string `json:"Permission,omitempty"`
	// The type of role. Can be: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles.
	Type *string `json:"Type,omitempty"`
}

Optional parameters for the method 'CreateRole'

func (*CreateRoleParams) SetFriendlyName

func (params *CreateRoleParams) SetFriendlyName(FriendlyName string) *CreateRoleParams

func (*CreateRoleParams) SetPermission

func (params *CreateRoleParams) SetPermission(Permission []string) *CreateRoleParams

func (*CreateRoleParams) SetType

func (params *CreateRoleParams) SetType(Type string) *CreateRoleParams

type CreateServiceConversationMessageParams

type CreateServiceConversationMessageParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The channel specific identifier of the message's author. Defaults to `system`.
	Author *string `json:"Author,omitempty"`
	// The content of the message, can be up to 1,600 characters long.
	Body *string `json:"Body,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated. `null` if the message has not been edited.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// The Media SID to be attached to the new Message.
	MediaSid *string `json:"MediaSid,omitempty"`
}

Optional parameters for the method 'CreateServiceConversationMessage'

func (*CreateServiceConversationMessageParams) SetAttributes

func (*CreateServiceConversationMessageParams) SetAuthor

func (*CreateServiceConversationMessageParams) SetBody

func (*CreateServiceConversationMessageParams) SetDateCreated

func (*CreateServiceConversationMessageParams) SetDateUpdated

func (*CreateServiceConversationMessageParams) SetMediaSid

func (*CreateServiceConversationMessageParams) SetXTwilioWebhookEnabled

func (params *CreateServiceConversationMessageParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *CreateServiceConversationMessageParams

type CreateServiceConversationParams

type CreateServiceConversationParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// The human-readable name of this conversation, limited to 256 characters. Optional.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to.
	MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"`
	// Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active`
	State *string `json:"State,omitempty"`
	// ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
	TimersClosed *string `json:"Timers.Closed,omitempty"`
	// ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
	TimersInactive *string `json:"Timers.Inactive,omitempty"`
	// An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
	UniqueName *string `json:"UniqueName,omitempty"`
}

Optional parameters for the method 'CreateServiceConversation'

func (*CreateServiceConversationParams) SetAttributes

func (params *CreateServiceConversationParams) SetAttributes(Attributes string) *CreateServiceConversationParams

func (*CreateServiceConversationParams) SetDateCreated

func (params *CreateServiceConversationParams) SetDateCreated(DateCreated time.Time) *CreateServiceConversationParams

func (*CreateServiceConversationParams) SetDateUpdated

func (params *CreateServiceConversationParams) SetDateUpdated(DateUpdated time.Time) *CreateServiceConversationParams

func (*CreateServiceConversationParams) SetFriendlyName

func (params *CreateServiceConversationParams) SetFriendlyName(FriendlyName string) *CreateServiceConversationParams

func (*CreateServiceConversationParams) SetMessagingServiceSid

func (params *CreateServiceConversationParams) SetMessagingServiceSid(MessagingServiceSid string) *CreateServiceConversationParams

func (*CreateServiceConversationParams) SetState

func (*CreateServiceConversationParams) SetTimersClosed

func (params *CreateServiceConversationParams) SetTimersClosed(TimersClosed string) *CreateServiceConversationParams

func (*CreateServiceConversationParams) SetTimersInactive

func (params *CreateServiceConversationParams) SetTimersInactive(TimersInactive string) *CreateServiceConversationParams

func (*CreateServiceConversationParams) SetUniqueName

func (params *CreateServiceConversationParams) SetUniqueName(UniqueName string) *CreateServiceConversationParams

func (*CreateServiceConversationParams) SetXTwilioWebhookEnabled

func (params *CreateServiceConversationParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *CreateServiceConversationParams

type CreateServiceConversationParticipantParams

type CreateServiceConversationParticipantParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters.
	Identity *string `json:"Identity,omitempty"`
	// The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field).
	MessagingBindingAddress *string `json:"MessagingBinding.Address,omitempty"`
	// The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity.
	MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"`
	// The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field).
	MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"`
	// The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant.
	RoleSid *string `json:"RoleSid,omitempty"`
}

Optional parameters for the method 'CreateServiceConversationParticipant'

func (*CreateServiceConversationParticipantParams) SetAttributes

func (*CreateServiceConversationParticipantParams) SetDateCreated

func (*CreateServiceConversationParticipantParams) SetDateUpdated

func (*CreateServiceConversationParticipantParams) SetIdentity

func (*CreateServiceConversationParticipantParams) SetMessagingBindingAddress

func (params *CreateServiceConversationParticipantParams) SetMessagingBindingAddress(MessagingBindingAddress string) *CreateServiceConversationParticipantParams

func (*CreateServiceConversationParticipantParams) SetMessagingBindingProjectedAddress

func (params *CreateServiceConversationParticipantParams) SetMessagingBindingProjectedAddress(MessagingBindingProjectedAddress string) *CreateServiceConversationParticipantParams

func (*CreateServiceConversationParticipantParams) SetMessagingBindingProxyAddress

func (params *CreateServiceConversationParticipantParams) SetMessagingBindingProxyAddress(MessagingBindingProxyAddress string) *CreateServiceConversationParticipantParams

func (*CreateServiceConversationParticipantParams) SetRoleSid

func (*CreateServiceConversationParticipantParams) SetXTwilioWebhookEnabled

func (params *CreateServiceConversationParticipantParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *CreateServiceConversationParticipantParams

type CreateServiceConversationScopedWebhookParams

type CreateServiceConversationScopedWebhookParams struct {
	// The list of events, firing webhook event for this Conversation.
	ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"`
	// The studio flow SID, where the webhook should be sent to.
	ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"`
	// The HTTP method to be used when sending a webhook request.
	ConfigurationMethod *string `json:"Configuration.Method,omitempty"`
	// The message index for which and it's successors the webhook will be replayed. Not set by default
	ConfigurationReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"`
	// The list of keywords, firing webhook event for this Conversation.
	ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"`
	// The absolute url the webhook request should be sent to.
	ConfigurationUrl *string `json:"Configuration.Url,omitempty"`
	// The target of this webhook: `webhook`, `studio`, `trigger`
	Target *string `json:"Target,omitempty"`
}

Optional parameters for the method 'CreateServiceConversationScopedWebhook'

func (*CreateServiceConversationScopedWebhookParams) SetConfigurationFilters

func (params *CreateServiceConversationScopedWebhookParams) SetConfigurationFilters(ConfigurationFilters []string) *CreateServiceConversationScopedWebhookParams

func (*CreateServiceConversationScopedWebhookParams) SetConfigurationFlowSid

func (params *CreateServiceConversationScopedWebhookParams) SetConfigurationFlowSid(ConfigurationFlowSid string) *CreateServiceConversationScopedWebhookParams

func (*CreateServiceConversationScopedWebhookParams) SetConfigurationMethod

func (params *CreateServiceConversationScopedWebhookParams) SetConfigurationMethod(ConfigurationMethod string) *CreateServiceConversationScopedWebhookParams

func (*CreateServiceConversationScopedWebhookParams) SetConfigurationReplayAfter

func (params *CreateServiceConversationScopedWebhookParams) SetConfigurationReplayAfter(ConfigurationReplayAfter int32) *CreateServiceConversationScopedWebhookParams

func (*CreateServiceConversationScopedWebhookParams) SetConfigurationTriggers

func (params *CreateServiceConversationScopedWebhookParams) SetConfigurationTriggers(ConfigurationTriggers []string) *CreateServiceConversationScopedWebhookParams

func (*CreateServiceConversationScopedWebhookParams) SetConfigurationUrl

func (*CreateServiceConversationScopedWebhookParams) SetTarget

type CreateServiceParams

type CreateServiceParams struct {
	// The human-readable name of this service, limited to 256 characters. Optional.
	FriendlyName *string `json:"FriendlyName,omitempty"`
}

Optional parameters for the method 'CreateService'

func (*CreateServiceParams) SetFriendlyName

func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateServiceParams

type CreateServiceRoleParams

type CreateServiceRoleParams struct {
	// A descriptive string that you create to describe the new resource. It can be up to 64 characters long.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`.
	Permission *[]string `json:"Permission,omitempty"`
	// The type of role. Can be: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles.
	Type *string `json:"Type,omitempty"`
}

Optional parameters for the method 'CreateServiceRole'

func (*CreateServiceRoleParams) SetFriendlyName

func (params *CreateServiceRoleParams) SetFriendlyName(FriendlyName string) *CreateServiceRoleParams

func (*CreateServiceRoleParams) SetPermission

func (params *CreateServiceRoleParams) SetPermission(Permission []string) *CreateServiceRoleParams

func (*CreateServiceRoleParams) SetType

type CreateServiceUserParams

type CreateServiceUserParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive.
	Identity *string `json:"Identity,omitempty"`
	// The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user.
	RoleSid *string `json:"RoleSid,omitempty"`
}

Optional parameters for the method 'CreateServiceUser'

func (*CreateServiceUserParams) SetAttributes

func (params *CreateServiceUserParams) SetAttributes(Attributes string) *CreateServiceUserParams

func (*CreateServiceUserParams) SetFriendlyName

func (params *CreateServiceUserParams) SetFriendlyName(FriendlyName string) *CreateServiceUserParams

func (*CreateServiceUserParams) SetIdentity

func (params *CreateServiceUserParams) SetIdentity(Identity string) *CreateServiceUserParams

func (*CreateServiceUserParams) SetRoleSid

func (params *CreateServiceUserParams) SetRoleSid(RoleSid string) *CreateServiceUserParams

func (*CreateServiceUserParams) SetXTwilioWebhookEnabled

func (params *CreateServiceUserParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *CreateServiceUserParams

type CreateUserParams

type CreateUserParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive.
	Identity *string `json:"Identity,omitempty"`
	// The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user.
	RoleSid *string `json:"RoleSid,omitempty"`
}

Optional parameters for the method 'CreateUser'

func (*CreateUserParams) SetAttributes

func (params *CreateUserParams) SetAttributes(Attributes string) *CreateUserParams

func (*CreateUserParams) SetFriendlyName

func (params *CreateUserParams) SetFriendlyName(FriendlyName string) *CreateUserParams

func (*CreateUserParams) SetIdentity

func (params *CreateUserParams) SetIdentity(Identity string) *CreateUserParams

func (*CreateUserParams) SetRoleSid

func (params *CreateUserParams) SetRoleSid(RoleSid string) *CreateUserParams

func (*CreateUserParams) SetXTwilioWebhookEnabled

func (params *CreateUserParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *CreateUserParams

type DefaultApiService

type DefaultApiService struct {
	// contains filtered or unexported fields
}

func NewDefaultApiService

func NewDefaultApiService(requestHandler *twilio.RequestHandler) *DefaultApiService

func NewDefaultApiServiceWithClient added in v0.9.0

func NewDefaultApiServiceWithClient(client twilio.BaseClient) *DefaultApiService

func (*DefaultApiService) CreateConversation

Create a new conversation in your account's default service

func (*DefaultApiService) CreateConversationMessage

func (c *DefaultApiService) CreateConversationMessage(ConversationSid string, params *CreateConversationMessageParams) (*ConversationsV1ConversationConversationMessage, error)

Add a new message to the conversation

func (*DefaultApiService) CreateConversationParticipant

func (c *DefaultApiService) CreateConversationParticipant(ConversationSid string, params *CreateConversationParticipantParams) (*ConversationsV1ConversationConversationParticipant, error)

Add a new participant to the conversation

func (*DefaultApiService) CreateConversationScopedWebhook

func (c *DefaultApiService) CreateConversationScopedWebhook(ConversationSid string, params *CreateConversationScopedWebhookParams) (*ConversationsV1ConversationConversationScopedWebhook, error)

Create a new webhook scoped to the conversation

func (*DefaultApiService) CreateCredential

Add a new push notification credential to your account

func (*DefaultApiService) CreateRole

func (c *DefaultApiService) CreateRole(params *CreateRoleParams) (*ConversationsV1Role, error)

Create a new user role in your account's default service

func (*DefaultApiService) CreateService

func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ConversationsV1Service, error)

Create a new conversation service on your account

func (*DefaultApiService) CreateServiceConversation

func (c *DefaultApiService) CreateServiceConversation(ChatServiceSid string, params *CreateServiceConversationParams) (*ConversationsV1ServiceServiceConversation, error)

Create a new conversation in your service

func (*DefaultApiService) CreateServiceConversationMessage

func (c *DefaultApiService) CreateServiceConversationMessage(ChatServiceSid string, ConversationSid string, params *CreateServiceConversationMessageParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessage, error)

Add a new message to the conversation in a specific service

func (*DefaultApiService) CreateServiceConversationParticipant

func (c *DefaultApiService) CreateServiceConversationParticipant(ChatServiceSid string, ConversationSid string, params *CreateServiceConversationParticipantParams) (*ConversationsV1ServiceServiceConversationServiceConversationParticipant, error)

Add a new participant to the conversation in a specific service

func (*DefaultApiService) CreateServiceConversationScopedWebhook

func (c *DefaultApiService) CreateServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, params *CreateServiceConversationScopedWebhookParams) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook, error)

Create a new webhook scoped to the conversation in a specific service

func (*DefaultApiService) CreateServiceRole

func (c *DefaultApiService) CreateServiceRole(ChatServiceSid string, params *CreateServiceRoleParams) (*ConversationsV1ServiceServiceRole, error)

Create a new user role in your service

func (*DefaultApiService) CreateServiceUser

func (c *DefaultApiService) CreateServiceUser(ChatServiceSid string, params *CreateServiceUserParams) (*ConversationsV1ServiceServiceUser, error)

Add a new conversation user to your service

func (*DefaultApiService) CreateUser

func (c *DefaultApiService) CreateUser(params *CreateUserParams) (*ConversationsV1User, error)

Add a new conversation user to your account's default service

func (*DefaultApiService) DeleteConversation

func (c *DefaultApiService) DeleteConversation(Sid string, params *DeleteConversationParams) error

Remove a conversation from your account's default service

func (*DefaultApiService) DeleteConversationMessage

func (c *DefaultApiService) DeleteConversationMessage(ConversationSid string, Sid string, params *DeleteConversationMessageParams) error

Remove a message from the conversation

func (*DefaultApiService) DeleteConversationParticipant

func (c *DefaultApiService) DeleteConversationParticipant(ConversationSid string, Sid string, params *DeleteConversationParticipantParams) error

Remove a participant from the conversation

func (*DefaultApiService) DeleteConversationScopedWebhook

func (c *DefaultApiService) DeleteConversationScopedWebhook(ConversationSid string, Sid string) error

Remove an existing webhook scoped to the conversation

func (*DefaultApiService) DeleteCredential

func (c *DefaultApiService) DeleteCredential(Sid string) error

Remove a push notification credential from your account

func (*DefaultApiService) DeleteRole

func (c *DefaultApiService) DeleteRole(Sid string) error

Remove a user role from your account's default service

func (*DefaultApiService) DeleteService

func (c *DefaultApiService) DeleteService(Sid string) error

Remove a conversation service with all its nested resources from your account

func (*DefaultApiService) DeleteServiceBinding

func (c *DefaultApiService) DeleteServiceBinding(ChatServiceSid string, Sid string) error

Remove a push notification binding from the conversation service

func (*DefaultApiService) DeleteServiceConversation

func (c *DefaultApiService) DeleteServiceConversation(ChatServiceSid string, Sid string, params *DeleteServiceConversationParams) error

Remove a conversation from your service

func (*DefaultApiService) DeleteServiceConversationMessage

func (c *DefaultApiService) DeleteServiceConversationMessage(ChatServiceSid string, ConversationSid string, Sid string, params *DeleteServiceConversationMessageParams) error

Remove a message from the conversation

func (*DefaultApiService) DeleteServiceConversationParticipant

func (c *DefaultApiService) DeleteServiceConversationParticipant(ChatServiceSid string, ConversationSid string, Sid string, params *DeleteServiceConversationParticipantParams) error

Remove a participant from the conversation

func (*DefaultApiService) DeleteServiceConversationScopedWebhook

func (c *DefaultApiService) DeleteServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, Sid string) error

Remove an existing webhook scoped to the conversation

func (*DefaultApiService) DeleteServiceRole

func (c *DefaultApiService) DeleteServiceRole(ChatServiceSid string, Sid string) error

Remove a user role from your service

func (*DefaultApiService) DeleteServiceUser

func (c *DefaultApiService) DeleteServiceUser(ChatServiceSid string, Sid string, params *DeleteServiceUserParams) error

Remove a conversation user from your service

func (*DefaultApiService) DeleteUser

func (c *DefaultApiService) DeleteUser(Sid string, params *DeleteUserParams) error

Remove a conversation user from your account's default service

func (*DefaultApiService) FetchConfiguration

func (c *DefaultApiService) FetchConfiguration() (*ConversationsV1Configuration, error)

Fetch the global configuration of conversations on your account

func (*DefaultApiService) FetchConfigurationWebhook

func (*DefaultApiService) FetchConversation

func (c *DefaultApiService) FetchConversation(Sid string) (*ConversationsV1Conversation, error)

Fetch a conversation from your account's default service

func (*DefaultApiService) FetchConversationMessage

func (c *DefaultApiService) FetchConversationMessage(ConversationSid string, Sid string) (*ConversationsV1ConversationConversationMessage, error)

Fetch a message from the conversation

func (*DefaultApiService) FetchConversationMessageReceipt

func (c *DefaultApiService) FetchConversationMessageReceipt(ConversationSid string, MessageSid string, Sid string) (*ConversationsV1ConversationConversationMessageConversationMessageReceipt, error)

Fetch the delivery and read receipts of the conversation message

func (*DefaultApiService) FetchConversationParticipant

func (c *DefaultApiService) FetchConversationParticipant(ConversationSid string, Sid string) (*ConversationsV1ConversationConversationParticipant, error)

Fetch a participant of the conversation

func (*DefaultApiService) FetchConversationScopedWebhook

func (c *DefaultApiService) FetchConversationScopedWebhook(ConversationSid string, Sid string) (*ConversationsV1ConversationConversationScopedWebhook, error)

Fetch the configuration of a conversation-scoped webhook

func (*DefaultApiService) FetchCredential

func (c *DefaultApiService) FetchCredential(Sid string) (*ConversationsV1Credential, error)

Fetch a push notification credential from your account

func (*DefaultApiService) FetchRole

func (c *DefaultApiService) FetchRole(Sid string) (*ConversationsV1Role, error)

Fetch a user role from your account's default service

func (*DefaultApiService) FetchService

func (c *DefaultApiService) FetchService(Sid string) (*ConversationsV1Service, error)

Fetch a conversation service from your account

func (*DefaultApiService) FetchServiceBinding

func (c *DefaultApiService) FetchServiceBinding(ChatServiceSid string, Sid string) (*ConversationsV1ServiceServiceBinding, error)

Fetch a push notification binding from the conversation service

func (*DefaultApiService) FetchServiceConfiguration

func (c *DefaultApiService) FetchServiceConfiguration(ChatServiceSid string) (*ConversationsV1ServiceServiceConfiguration, error)

Fetch the configuration of a conversation service

func (*DefaultApiService) FetchServiceConversation

func (c *DefaultApiService) FetchServiceConversation(ChatServiceSid string, Sid string) (*ConversationsV1ServiceServiceConversation, error)

Fetch a conversation from your service

func (*DefaultApiService) FetchServiceConversationMessage

func (c *DefaultApiService) FetchServiceConversationMessage(ChatServiceSid string, ConversationSid string, Sid string) (*ConversationsV1ServiceServiceConversationServiceConversationMessage, error)

Fetch a message from the conversation

func (*DefaultApiService) FetchServiceConversationMessageReceipt

func (c *DefaultApiService) FetchServiceConversationMessageReceipt(ChatServiceSid string, ConversationSid string, MessageSid string, Sid string) (*ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt, error)

Fetch the delivery and read receipts of the conversation message

func (*DefaultApiService) FetchServiceConversationParticipant

func (c *DefaultApiService) FetchServiceConversationParticipant(ChatServiceSid string, ConversationSid string, Sid string) (*ConversationsV1ServiceServiceConversationServiceConversationParticipant, error)

Fetch a participant of the conversation

func (*DefaultApiService) FetchServiceConversationScopedWebhook

func (c *DefaultApiService) FetchServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, Sid string) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook, error)

Fetch the configuration of a conversation-scoped webhook

func (*DefaultApiService) FetchServiceNotification

func (c *DefaultApiService) FetchServiceNotification(ChatServiceSid string) (*ConversationsV1ServiceServiceConfigurationServiceNotification, error)

Fetch push notification service settings

func (*DefaultApiService) FetchServiceRole

func (c *DefaultApiService) FetchServiceRole(ChatServiceSid string, Sid string) (*ConversationsV1ServiceServiceRole, error)

Fetch a user role from your service

func (*DefaultApiService) FetchServiceUser

func (c *DefaultApiService) FetchServiceUser(ChatServiceSid string, Sid string) (*ConversationsV1ServiceServiceUser, error)

Fetch a conversation user from your service

func (*DefaultApiService) FetchUser

func (c *DefaultApiService) FetchUser(Sid string) (*ConversationsV1User, error)

Fetch a conversation user from your account's default service

func (*DefaultApiService) ListConversation

Retrieve a list of conversations in your account's default service

func (*DefaultApiService) ListConversationMessage

func (c *DefaultApiService) ListConversationMessage(ConversationSid string, params *ListConversationMessageParams) (*ListConversationMessageResponse, error)

Retrieve a list of all messages in the conversation

func (*DefaultApiService) ListConversationMessageReceipt

func (c *DefaultApiService) ListConversationMessageReceipt(ConversationSid string, MessageSid string, params *ListConversationMessageReceiptParams) (*ListConversationMessageReceiptResponse, error)

Retrieve a list of all delivery and read receipts of the conversation message

func (*DefaultApiService) ListConversationParticipant

func (c *DefaultApiService) ListConversationParticipant(ConversationSid string, params *ListConversationParticipantParams) (*ListConversationParticipantResponse, error)

Retrieve a list of all participants of the conversation

func (*DefaultApiService) ListConversationScopedWebhook

func (c *DefaultApiService) ListConversationScopedWebhook(ConversationSid string, params *ListConversationScopedWebhookParams) (*ListConversationScopedWebhookResponse, error)

Retrieve a list of all webhooks scoped to the conversation

func (*DefaultApiService) ListCredential

func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ListCredentialResponse, error)

Retrieve a list of all push notification credentials on your account

func (*DefaultApiService) ListRole

func (c *DefaultApiService) ListRole(params *ListRoleParams) (*ListRoleResponse, error)

Retrieve a list of all user roles in your account's default service

func (*DefaultApiService) ListService

func (c *DefaultApiService) ListService(params *ListServiceParams) (*ListServiceResponse, error)

Retrieve a list of all conversation services on your account

func (*DefaultApiService) ListServiceBinding

func (c *DefaultApiService) ListServiceBinding(ChatServiceSid string, params *ListServiceBindingParams) (*ListServiceBindingResponse, error)

Retrieve a list of all push notification bindings in the conversation service

func (*DefaultApiService) ListServiceConversation

func (c *DefaultApiService) ListServiceConversation(ChatServiceSid string, params *ListServiceConversationParams) (*ListServiceConversationResponse, error)

Retrieve a list of conversations in your service

func (*DefaultApiService) ListServiceConversationMessage

func (c *DefaultApiService) ListServiceConversationMessage(ChatServiceSid string, ConversationSid string, params *ListServiceConversationMessageParams) (*ListServiceConversationMessageResponse, error)

Retrieve a list of all messages in the conversation

func (*DefaultApiService) ListServiceConversationMessageReceipt

func (c *DefaultApiService) ListServiceConversationMessageReceipt(ChatServiceSid string, ConversationSid string, MessageSid string, params *ListServiceConversationMessageReceiptParams) (*ListServiceConversationMessageReceiptResponse, error)

Retrieve a list of all delivery and read receipts of the conversation message

func (*DefaultApiService) ListServiceConversationParticipant

func (c *DefaultApiService) ListServiceConversationParticipant(ChatServiceSid string, ConversationSid string, params *ListServiceConversationParticipantParams) (*ListServiceConversationParticipantResponse, error)

Retrieve a list of all participants of the conversation

func (*DefaultApiService) ListServiceConversationScopedWebhook

func (c *DefaultApiService) ListServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, params *ListServiceConversationScopedWebhookParams) (*ListServiceConversationScopedWebhookResponse, error)

Retrieve a list of all webhooks scoped to the conversation

func (*DefaultApiService) ListServiceRole

func (c *DefaultApiService) ListServiceRole(ChatServiceSid string, params *ListServiceRoleParams) (*ListServiceRoleResponse, error)

Retrieve a list of all user roles in your service

func (*DefaultApiService) ListServiceUser

func (c *DefaultApiService) ListServiceUser(ChatServiceSid string, params *ListServiceUserParams) (*ListServiceUserResponse, error)

Retrieve a list of all conversation users in your service

func (*DefaultApiService) ListUser

func (c *DefaultApiService) ListUser(params *ListUserParams) (*ListUserResponse, error)

Retrieve a list of all conversation users in your account's default service

func (*DefaultApiService) UpdateConfiguration

Update the global configuration of conversations on your account

func (*DefaultApiService) UpdateConversation

func (c *DefaultApiService) UpdateConversation(Sid string, params *UpdateConversationParams) (*ConversationsV1Conversation, error)

Update an existing conversation in your account's default service

func (*DefaultApiService) UpdateConversationMessage

func (c *DefaultApiService) UpdateConversationMessage(ConversationSid string, Sid string, params *UpdateConversationMessageParams) (*ConversationsV1ConversationConversationMessage, error)

Update an existing message in the conversation

func (*DefaultApiService) UpdateConversationParticipant

func (c *DefaultApiService) UpdateConversationParticipant(ConversationSid string, Sid string, params *UpdateConversationParticipantParams) (*ConversationsV1ConversationConversationParticipant, error)

Update an existing participant in the conversation

func (*DefaultApiService) UpdateConversationScopedWebhook

func (c *DefaultApiService) UpdateConversationScopedWebhook(ConversationSid string, Sid string, params *UpdateConversationScopedWebhookParams) (*ConversationsV1ConversationConversationScopedWebhook, error)

Update an existing conversation-scoped webhook

func (*DefaultApiService) UpdateCredential

func (c *DefaultApiService) UpdateCredential(Sid string, params *UpdateCredentialParams) (*ConversationsV1Credential, error)

Update an existing push notification credential on your account

func (*DefaultApiService) UpdateRole

func (c *DefaultApiService) UpdateRole(Sid string, params *UpdateRoleParams) (*ConversationsV1Role, error)

Update an existing user role in your account's default service

func (*DefaultApiService) UpdateServiceConfiguration

func (c *DefaultApiService) UpdateServiceConfiguration(ChatServiceSid string, params *UpdateServiceConfigurationParams) (*ConversationsV1ServiceServiceConfiguration, error)

Update configuration settings of a conversation service

func (*DefaultApiService) UpdateServiceConversation

func (c *DefaultApiService) UpdateServiceConversation(ChatServiceSid string, Sid string, params *UpdateServiceConversationParams) (*ConversationsV1ServiceServiceConversation, error)

Update an existing conversation in your service

func (*DefaultApiService) UpdateServiceConversationMessage

func (c *DefaultApiService) UpdateServiceConversationMessage(ChatServiceSid string, ConversationSid string, Sid string, params *UpdateServiceConversationMessageParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessage, error)

Update an existing message in the conversation

func (*DefaultApiService) UpdateServiceConversationParticipant

func (c *DefaultApiService) UpdateServiceConversationParticipant(ChatServiceSid string, ConversationSid string, Sid string, params *UpdateServiceConversationParticipantParams) (*ConversationsV1ServiceServiceConversationServiceConversationParticipant, error)

Update an existing participant in the conversation

func (*DefaultApiService) UpdateServiceConversationScopedWebhook

func (c *DefaultApiService) UpdateServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, Sid string, params *UpdateServiceConversationScopedWebhookParams) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook, error)

Update an existing conversation-scoped webhook

func (*DefaultApiService) UpdateServiceNotification

Update push notification service settings

func (*DefaultApiService) UpdateServiceRole

func (c *DefaultApiService) UpdateServiceRole(ChatServiceSid string, Sid string, params *UpdateServiceRoleParams) (*ConversationsV1ServiceServiceRole, error)

Update an existing user role in your service

func (*DefaultApiService) UpdateServiceUser

func (c *DefaultApiService) UpdateServiceUser(ChatServiceSid string, Sid string, params *UpdateServiceUserParams) (*ConversationsV1ServiceServiceUser, error)

Update an existing conversation user in your service

func (*DefaultApiService) UpdateUser

func (c *DefaultApiService) UpdateUser(Sid string, params *UpdateUserParams) (*ConversationsV1User, error)

Update an existing conversation user in your account's default service

type DeleteConversationMessageParams

type DeleteConversationMessageParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
}

Optional parameters for the method 'DeleteConversationMessage'

func (*DeleteConversationMessageParams) SetXTwilioWebhookEnabled

func (params *DeleteConversationMessageParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *DeleteConversationMessageParams

type DeleteConversationParams

type DeleteConversationParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
}

Optional parameters for the method 'DeleteConversation'

func (*DeleteConversationParams) SetXTwilioWebhookEnabled

func (params *DeleteConversationParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *DeleteConversationParams

type DeleteConversationParticipantParams

type DeleteConversationParticipantParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
}

Optional parameters for the method 'DeleteConversationParticipant'

func (*DeleteConversationParticipantParams) SetXTwilioWebhookEnabled

func (params *DeleteConversationParticipantParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *DeleteConversationParticipantParams

type DeleteServiceConversationMessageParams

type DeleteServiceConversationMessageParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
}

Optional parameters for the method 'DeleteServiceConversationMessage'

func (*DeleteServiceConversationMessageParams) SetXTwilioWebhookEnabled

func (params *DeleteServiceConversationMessageParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *DeleteServiceConversationMessageParams

type DeleteServiceConversationParams

type DeleteServiceConversationParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
}

Optional parameters for the method 'DeleteServiceConversation'

func (*DeleteServiceConversationParams) SetXTwilioWebhookEnabled

func (params *DeleteServiceConversationParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *DeleteServiceConversationParams

type DeleteServiceConversationParticipantParams

type DeleteServiceConversationParticipantParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
}

Optional parameters for the method 'DeleteServiceConversationParticipant'

func (*DeleteServiceConversationParticipantParams) SetXTwilioWebhookEnabled

func (params *DeleteServiceConversationParticipantParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *DeleteServiceConversationParticipantParams

type DeleteServiceUserParams

type DeleteServiceUserParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
}

Optional parameters for the method 'DeleteServiceUser'

func (*DeleteServiceUserParams) SetXTwilioWebhookEnabled

func (params *DeleteServiceUserParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *DeleteServiceUserParams

type DeleteUserParams

type DeleteUserParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
}

Optional parameters for the method 'DeleteUser'

func (*DeleteUserParams) SetXTwilioWebhookEnabled

func (params *DeleteUserParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *DeleteUserParams

type ListConversationMessageParams

type ListConversationMessageParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int32 `json:"PageSize,omitempty"`
}

Optional parameters for the method 'ListConversationMessage'

func (*ListConversationMessageParams) SetPageSize

func (params *ListConversationMessageParams) SetPageSize(PageSize int32) *ListConversationMessageParams

type ListConversationMessageReceiptParams

type ListConversationMessageReceiptParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int32 `json:"PageSize,omitempty"`
}

Optional parameters for the method 'ListConversationMessageReceipt'

func (*ListConversationMessageReceiptParams) SetPageSize

type ListConversationMessageReceiptResponse

type ListConversationMessageReceiptResponse struct {
	DeliveryReceipts []ConversationsV1ConversationConversationMessageConversationMessageReceipt `json:"delivery_receipts,omitempty"`
	Meta             ListConversationResponseMeta                                               `json:"meta,omitempty"`
}

ListConversationMessageReceiptResponse struct for ListConversationMessageReceiptResponse

type ListConversationMessageResponse

type ListConversationMessageResponse struct {
	Messages []ConversationsV1ConversationConversationMessage `json:"messages,omitempty"`
	Meta     ListConversationResponseMeta                     `json:"meta,omitempty"`
}

ListConversationMessageResponse struct for ListConversationMessageResponse

type ListConversationParams

type ListConversationParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int32 `json:"PageSize,omitempty"`
}

Optional parameters for the method 'ListConversation'

func (*ListConversationParams) SetPageSize

func (params *ListConversationParams) SetPageSize(PageSize int32) *ListConversationParams

type ListConversationParticipantParams

type ListConversationParticipantParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int32 `json:"PageSize,omitempty"`
}

Optional parameters for the method 'ListConversationParticipant'

func (*ListConversationParticipantParams) SetPageSize

type ListConversationParticipantResponse

type ListConversationParticipantResponse struct {
	Meta         ListConversationResponseMeta                         `json:"meta,omitempty"`
	Participants []ConversationsV1ConversationConversationParticipant `json:"participants,omitempty"`
}

ListConversationParticipantResponse struct for ListConversationParticipantResponse

type ListConversationResponse

type ListConversationResponse struct {
	Conversations []ConversationsV1Conversation `json:"conversations,omitempty"`
	Meta          ListConversationResponseMeta  `json:"meta,omitempty"`
}

ListConversationResponse struct for ListConversationResponse

type ListConversationResponseMeta

type ListConversationResponseMeta struct {
	FirstPageUrl    string `json:"first_page_url,omitempty"`
	Key             string `json:"key,omitempty"`
	NextPageUrl     string `json:"next_page_url,omitempty"`
	Page            int32  `json:"page,omitempty"`
	PageSize        int32  `json:"page_size,omitempty"`
	PreviousPageUrl string `json:"previous_page_url,omitempty"`
	Url             string `json:"url,omitempty"`
}

ListConversationResponseMeta struct for ListConversationResponseMeta

type ListConversationScopedWebhookParams

type ListConversationScopedWebhookParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int32 `json:"PageSize,omitempty"`
}

Optional parameters for the method 'ListConversationScopedWebhook'

func (*ListConversationScopedWebhookParams) SetPageSize

type ListConversationScopedWebhookResponse

type ListConversationScopedWebhookResponse struct {
	Meta     ListConversationResponseMeta                           `json:"meta,omitempty"`
	Webhooks []ConversationsV1ConversationConversationScopedWebhook `json:"webhooks,omitempty"`
}

ListConversationScopedWebhookResponse struct for ListConversationScopedWebhookResponse

type ListCredentialParams

type ListCredentialParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int32 `json:"PageSize,omitempty"`
}

Optional parameters for the method 'ListCredential'

func (*ListCredentialParams) SetPageSize

func (params *ListCredentialParams) SetPageSize(PageSize int32) *ListCredentialParams

type ListCredentialResponse

type ListCredentialResponse struct {
	Credentials []ConversationsV1Credential  `json:"credentials,omitempty"`
	Meta        ListConversationResponseMeta `json:"meta,omitempty"`
}

ListCredentialResponse struct for ListCredentialResponse

type ListRoleParams

type ListRoleParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int32 `json:"PageSize,omitempty"`
}

Optional parameters for the method 'ListRole'

func (*ListRoleParams) SetPageSize

func (params *ListRoleParams) SetPageSize(PageSize int32) *ListRoleParams

type ListRoleResponse

type ListRoleResponse struct {
	Meta  ListConversationResponseMeta `json:"meta,omitempty"`
	Roles []ConversationsV1Role        `json:"roles,omitempty"`
}

ListRoleResponse struct for ListRoleResponse

type ListServiceBindingParams

type ListServiceBindingParams struct {
	// The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
	BindingType *[]string `json:"BindingType,omitempty"`
	// The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
	Identity *[]string `json:"Identity,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int32 `json:"PageSize,omitempty"`
}

Optional parameters for the method 'ListServiceBinding'

func (*ListServiceBindingParams) SetBindingType

func (params *ListServiceBindingParams) SetBindingType(BindingType []string) *ListServiceBindingParams

func (*ListServiceBindingParams) SetIdentity

func (params *ListServiceBindingParams) SetIdentity(Identity []string) *ListServiceBindingParams

func (*ListServiceBindingParams) SetPageSize

func (params *ListServiceBindingParams) SetPageSize(PageSize int32) *ListServiceBindingParams

type ListServiceBindingResponse

type ListServiceBindingResponse struct {
	Bindings []ConversationsV1ServiceServiceBinding `json:"bindings,omitempty"`
	Meta     ListConversationResponseMeta           `json:"meta,omitempty"`
}

ListServiceBindingResponse struct for ListServiceBindingResponse

type ListServiceConversationMessageParams

type ListServiceConversationMessageParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int32 `json:"PageSize,omitempty"`
}

Optional parameters for the method 'ListServiceConversationMessage'

func (*ListServiceConversationMessageParams) SetPageSize

type ListServiceConversationMessageReceiptParams

type ListServiceConversationMessageReceiptParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int32 `json:"PageSize,omitempty"`
}

Optional parameters for the method 'ListServiceConversationMessageReceipt'

func (*ListServiceConversationMessageReceiptParams) SetPageSize

type ListServiceConversationMessageReceiptResponse

type ListServiceConversationMessageReceiptResponse struct {
	DeliveryReceipts []ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt `json:"delivery_receipts,omitempty"`
	Meta             ListConversationResponseMeta                                                                           `json:"meta,omitempty"`
}

ListServiceConversationMessageReceiptResponse struct for ListServiceConversationMessageReceiptResponse

type ListServiceConversationMessageResponse

type ListServiceConversationMessageResponse struct {
	Messages []ConversationsV1ServiceServiceConversationServiceConversationMessage `json:"messages,omitempty"`
	Meta     ListConversationResponseMeta                                          `json:"meta,omitempty"`
}

ListServiceConversationMessageResponse struct for ListServiceConversationMessageResponse

type ListServiceConversationParams

type ListServiceConversationParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int32 `json:"PageSize,omitempty"`
}

Optional parameters for the method 'ListServiceConversation'

func (*ListServiceConversationParams) SetPageSize

func (params *ListServiceConversationParams) SetPageSize(PageSize int32) *ListServiceConversationParams

type ListServiceConversationParticipantParams

type ListServiceConversationParticipantParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int32 `json:"PageSize,omitempty"`
}

Optional parameters for the method 'ListServiceConversationParticipant'

func (*ListServiceConversationParticipantParams) SetPageSize

type ListServiceConversationParticipantResponse

type ListServiceConversationParticipantResponse struct {
	Meta         ListConversationResponseMeta                                              `json:"meta,omitempty"`
	Participants []ConversationsV1ServiceServiceConversationServiceConversationParticipant `json:"participants,omitempty"`
}

ListServiceConversationParticipantResponse struct for ListServiceConversationParticipantResponse

type ListServiceConversationResponse

type ListServiceConversationResponse struct {
	Conversations []ConversationsV1ServiceServiceConversation `json:"conversations,omitempty"`
	Meta          ListConversationResponseMeta                `json:"meta,omitempty"`
}

ListServiceConversationResponse struct for ListServiceConversationResponse

type ListServiceConversationScopedWebhookParams

type ListServiceConversationScopedWebhookParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int32 `json:"PageSize,omitempty"`
}

Optional parameters for the method 'ListServiceConversationScopedWebhook'

func (*ListServiceConversationScopedWebhookParams) SetPageSize

type ListServiceConversationScopedWebhookResponse

type ListServiceConversationScopedWebhookResponse struct {
	Meta     ListConversationResponseMeta                                                `json:"meta,omitempty"`
	Webhooks []ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook `json:"webhooks,omitempty"`
}

ListServiceConversationScopedWebhookResponse struct for ListServiceConversationScopedWebhookResponse

type ListServiceParams

type ListServiceParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int32 `json:"PageSize,omitempty"`
}

Optional parameters for the method 'ListService'

func (*ListServiceParams) SetPageSize

func (params *ListServiceParams) SetPageSize(PageSize int32) *ListServiceParams

type ListServiceResponse

type ListServiceResponse struct {
	Meta     ListConversationResponseMeta `json:"meta,omitempty"`
	Services []ConversationsV1Service     `json:"services,omitempty"`
}

ListServiceResponse struct for ListServiceResponse

type ListServiceRoleParams

type ListServiceRoleParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int32 `json:"PageSize,omitempty"`
}

Optional parameters for the method 'ListServiceRole'

func (*ListServiceRoleParams) SetPageSize

func (params *ListServiceRoleParams) SetPageSize(PageSize int32) *ListServiceRoleParams

type ListServiceRoleResponse

type ListServiceRoleResponse struct {
	Meta  ListConversationResponseMeta        `json:"meta,omitempty"`
	Roles []ConversationsV1ServiceServiceRole `json:"roles,omitempty"`
}

ListServiceRoleResponse struct for ListServiceRoleResponse

type ListServiceUserParams

type ListServiceUserParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int32 `json:"PageSize,omitempty"`
}

Optional parameters for the method 'ListServiceUser'

func (*ListServiceUserParams) SetPageSize

func (params *ListServiceUserParams) SetPageSize(PageSize int32) *ListServiceUserParams

type ListServiceUserResponse

type ListServiceUserResponse struct {
	Meta  ListConversationResponseMeta        `json:"meta,omitempty"`
	Users []ConversationsV1ServiceServiceUser `json:"users,omitempty"`
}

ListServiceUserResponse struct for ListServiceUserResponse

type ListUserParams

type ListUserParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int32 `json:"PageSize,omitempty"`
}

Optional parameters for the method 'ListUser'

func (*ListUserParams) SetPageSize

func (params *ListUserParams) SetPageSize(PageSize int32) *ListUserParams

type ListUserResponse

type ListUserResponse struct {
	Meta  ListConversationResponseMeta `json:"meta,omitempty"`
	Users []ConversationsV1User        `json:"users,omitempty"`
}

ListUserResponse struct for ListUserResponse

type UpdateConfigurationParams

type UpdateConfigurationParams struct {
	// The SID of the default [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to use when creating a conversation.
	DefaultChatServiceSid *string `json:"DefaultChatServiceSid,omitempty"`
	// Default ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
	DefaultClosedTimer *string `json:"DefaultClosedTimer,omitempty"`
	// Default ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
	DefaultInactiveTimer *string `json:"DefaultInactiveTimer,omitempty"`
	// The SID of the default [Messaging Service](https://www.twilio.com/docs/sms/services/api) to use when creating a conversation.
	DefaultMessagingServiceSid *string `json:"DefaultMessagingServiceSid,omitempty"`
}

Optional parameters for the method 'UpdateConfiguration'

func (*UpdateConfigurationParams) SetDefaultChatServiceSid

func (params *UpdateConfigurationParams) SetDefaultChatServiceSid(DefaultChatServiceSid string) *UpdateConfigurationParams

func (*UpdateConfigurationParams) SetDefaultClosedTimer

func (params *UpdateConfigurationParams) SetDefaultClosedTimer(DefaultClosedTimer string) *UpdateConfigurationParams

func (*UpdateConfigurationParams) SetDefaultInactiveTimer

func (params *UpdateConfigurationParams) SetDefaultInactiveTimer(DefaultInactiveTimer string) *UpdateConfigurationParams

func (*UpdateConfigurationParams) SetDefaultMessagingServiceSid

func (params *UpdateConfigurationParams) SetDefaultMessagingServiceSid(DefaultMessagingServiceSid string) *UpdateConfigurationParams

type UpdateConfigurationWebhookParams

type UpdateConfigurationWebhookParams struct {
	// The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`
	Filters *[]string `json:"Filters,omitempty"`
	// The HTTP method to be used when sending a webhook request.
	Method *string `json:"Method,omitempty"`
	// The absolute url the post-event webhook request should be sent to.
	PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"`
	// The absolute url the pre-event webhook request should be sent to.
	PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"`
	// The routing target of the webhook.
	Target *string `json:"Target,omitempty"`
}

Optional parameters for the method 'UpdateConfigurationWebhook'

func (*UpdateConfigurationWebhookParams) SetFilters

func (*UpdateConfigurationWebhookParams) SetMethod

func (*UpdateConfigurationWebhookParams) SetPostWebhookUrl

func (params *UpdateConfigurationWebhookParams) SetPostWebhookUrl(PostWebhookUrl string) *UpdateConfigurationWebhookParams

func (*UpdateConfigurationWebhookParams) SetPreWebhookUrl

func (params *UpdateConfigurationWebhookParams) SetPreWebhookUrl(PreWebhookUrl string) *UpdateConfigurationWebhookParams

func (*UpdateConfigurationWebhookParams) SetTarget

type UpdateConversationMessageParams

type UpdateConversationMessageParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The channel specific identifier of the message's author. Defaults to `system`.
	Author *string `json:"Author,omitempty"`
	// The content of the message, can be up to 1,600 characters long.
	Body *string `json:"Body,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated. `null` if the message has not been edited.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
}

Optional parameters for the method 'UpdateConversationMessage'

func (*UpdateConversationMessageParams) SetAttributes

func (params *UpdateConversationMessageParams) SetAttributes(Attributes string) *UpdateConversationMessageParams

func (*UpdateConversationMessageParams) SetAuthor

func (*UpdateConversationMessageParams) SetBody

func (*UpdateConversationMessageParams) SetDateCreated

func (params *UpdateConversationMessageParams) SetDateCreated(DateCreated time.Time) *UpdateConversationMessageParams

func (*UpdateConversationMessageParams) SetDateUpdated

func (params *UpdateConversationMessageParams) SetDateUpdated(DateUpdated time.Time) *UpdateConversationMessageParams

func (*UpdateConversationMessageParams) SetXTwilioWebhookEnabled

func (params *UpdateConversationMessageParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *UpdateConversationMessageParams

type UpdateConversationParams

type UpdateConversationParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// The human-readable name of this conversation, limited to 256 characters. Optional.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to.
	MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"`
	// Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active`
	State *string `json:"State,omitempty"`
	// ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
	TimersClosed *string `json:"Timers.Closed,omitempty"`
	// ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
	TimersInactive *string `json:"Timers.Inactive,omitempty"`
	// An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
	UniqueName *string `json:"UniqueName,omitempty"`
}

Optional parameters for the method 'UpdateConversation'

func (*UpdateConversationParams) SetAttributes

func (params *UpdateConversationParams) SetAttributes(Attributes string) *UpdateConversationParams

func (*UpdateConversationParams) SetDateCreated

func (params *UpdateConversationParams) SetDateCreated(DateCreated time.Time) *UpdateConversationParams

func (*UpdateConversationParams) SetDateUpdated

func (params *UpdateConversationParams) SetDateUpdated(DateUpdated time.Time) *UpdateConversationParams

func (*UpdateConversationParams) SetFriendlyName

func (params *UpdateConversationParams) SetFriendlyName(FriendlyName string) *UpdateConversationParams

func (*UpdateConversationParams) SetMessagingServiceSid

func (params *UpdateConversationParams) SetMessagingServiceSid(MessagingServiceSid string) *UpdateConversationParams

func (*UpdateConversationParams) SetState

func (params *UpdateConversationParams) SetState(State string) *UpdateConversationParams

func (*UpdateConversationParams) SetTimersClosed

func (params *UpdateConversationParams) SetTimersClosed(TimersClosed string) *UpdateConversationParams

func (*UpdateConversationParams) SetTimersInactive

func (params *UpdateConversationParams) SetTimersInactive(TimersInactive string) *UpdateConversationParams

func (*UpdateConversationParams) SetUniqueName

func (params *UpdateConversationParams) SetUniqueName(UniqueName string) *UpdateConversationParams

func (*UpdateConversationParams) SetXTwilioWebhookEnabled

func (params *UpdateConversationParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *UpdateConversationParams

type UpdateConversationParticipantParams

type UpdateConversationParticipantParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
	Identity *string `json:"Identity,omitempty"`
	// Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant.
	LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"`
	// Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant.
	LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"`
	// The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it.
	MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"`
	// The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it.
	MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"`
	// The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant.
	RoleSid *string `json:"RoleSid,omitempty"`
}

Optional parameters for the method 'UpdateConversationParticipant'

func (*UpdateConversationParticipantParams) SetAttributes

func (*UpdateConversationParticipantParams) SetDateCreated

func (*UpdateConversationParticipantParams) SetDateUpdated

func (*UpdateConversationParticipantParams) SetIdentity

func (*UpdateConversationParticipantParams) SetLastReadMessageIndex

func (params *UpdateConversationParticipantParams) SetLastReadMessageIndex(LastReadMessageIndex int32) *UpdateConversationParticipantParams

func (*UpdateConversationParticipantParams) SetLastReadTimestamp

func (params *UpdateConversationParticipantParams) SetLastReadTimestamp(LastReadTimestamp string) *UpdateConversationParticipantParams

func (*UpdateConversationParticipantParams) SetMessagingBindingProjectedAddress

func (params *UpdateConversationParticipantParams) SetMessagingBindingProjectedAddress(MessagingBindingProjectedAddress string) *UpdateConversationParticipantParams

func (*UpdateConversationParticipantParams) SetMessagingBindingProxyAddress

func (params *UpdateConversationParticipantParams) SetMessagingBindingProxyAddress(MessagingBindingProxyAddress string) *UpdateConversationParticipantParams

func (*UpdateConversationParticipantParams) SetRoleSid

func (*UpdateConversationParticipantParams) SetXTwilioWebhookEnabled

func (params *UpdateConversationParticipantParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *UpdateConversationParticipantParams

type UpdateConversationScopedWebhookParams

type UpdateConversationScopedWebhookParams struct {
	// The list of events, firing webhook event for this Conversation.
	ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"`
	// The studio flow SID, where the webhook should be sent to.
	ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"`
	// The HTTP method to be used when sending a webhook request.
	ConfigurationMethod *string `json:"Configuration.Method,omitempty"`
	// The list of keywords, firing webhook event for this Conversation.
	ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"`
	// The absolute url the webhook request should be sent to.
	ConfigurationUrl *string `json:"Configuration.Url,omitempty"`
}

Optional parameters for the method 'UpdateConversationScopedWebhook'

func (*UpdateConversationScopedWebhookParams) SetConfigurationFilters

func (params *UpdateConversationScopedWebhookParams) SetConfigurationFilters(ConfigurationFilters []string) *UpdateConversationScopedWebhookParams

func (*UpdateConversationScopedWebhookParams) SetConfigurationFlowSid

func (params *UpdateConversationScopedWebhookParams) SetConfigurationFlowSid(ConfigurationFlowSid string) *UpdateConversationScopedWebhookParams

func (*UpdateConversationScopedWebhookParams) SetConfigurationMethod

func (params *UpdateConversationScopedWebhookParams) SetConfigurationMethod(ConfigurationMethod string) *UpdateConversationScopedWebhookParams

func (*UpdateConversationScopedWebhookParams) SetConfigurationTriggers

func (params *UpdateConversationScopedWebhookParams) SetConfigurationTriggers(ConfigurationTriggers []string) *UpdateConversationScopedWebhookParams

func (*UpdateConversationScopedWebhookParams) SetConfigurationUrl

func (params *UpdateConversationScopedWebhookParams) SetConfigurationUrl(ConfigurationUrl string) *UpdateConversationScopedWebhookParams

type UpdateCredentialParams

type UpdateCredentialParams struct {
	// [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential.
	ApiKey *string `json:"ApiKey,omitempty"`
	// [APN only] The URL encoded representation of the certificate. For example,  `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----`.
	Certificate *string `json:"Certificate,omitempty"`
	// A descriptive string that you create to describe the new resource. It can be up to 64 characters long.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----`.
	PrivateKey *string `json:"PrivateKey,omitempty"`
	// [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production.
	Sandbox *bool `json:"Sandbox,omitempty"`
	// [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging.
	Secret *string `json:"Secret,omitempty"`
	// The type of push-notification service the credential is for. Can be: `fcm`, `gcm`, or `apn`.
	Type *string `json:"Type,omitempty"`
}

Optional parameters for the method 'UpdateCredential'

func (*UpdateCredentialParams) SetApiKey

func (params *UpdateCredentialParams) SetApiKey(ApiKey string) *UpdateCredentialParams

func (*UpdateCredentialParams) SetCertificate

func (params *UpdateCredentialParams) SetCertificate(Certificate string) *UpdateCredentialParams

func (*UpdateCredentialParams) SetFriendlyName

func (params *UpdateCredentialParams) SetFriendlyName(FriendlyName string) *UpdateCredentialParams

func (*UpdateCredentialParams) SetPrivateKey

func (params *UpdateCredentialParams) SetPrivateKey(PrivateKey string) *UpdateCredentialParams

func (*UpdateCredentialParams) SetSandbox

func (params *UpdateCredentialParams) SetSandbox(Sandbox bool) *UpdateCredentialParams

func (*UpdateCredentialParams) SetSecret

func (params *UpdateCredentialParams) SetSecret(Secret string) *UpdateCredentialParams

func (*UpdateCredentialParams) SetType

func (params *UpdateCredentialParams) SetType(Type string) *UpdateCredentialParams

type UpdateRoleParams

type UpdateRoleParams struct {
	// A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`.
	Permission *[]string `json:"Permission,omitempty"`
}

Optional parameters for the method 'UpdateRole'

func (*UpdateRoleParams) SetPermission

func (params *UpdateRoleParams) SetPermission(Permission []string) *UpdateRoleParams

type UpdateServiceConfigurationParams

type UpdateServiceConfigurationParams struct {
	// The service-level role assigned to users when they are added to the service. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles.
	DefaultChatServiceRoleSid *string `json:"DefaultChatServiceRoleSid,omitempty"`
	// The conversation-level role assigned to a conversation creator when they join a new conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles.
	DefaultConversationCreatorRoleSid *string `json:"DefaultConversationCreatorRoleSid,omitempty"`
	// The conversation-level role assigned to users when they are added to a conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles.
	DefaultConversationRoleSid *string `json:"DefaultConversationRoleSid,omitempty"`
	// Whether the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) is enabled for this Conversations Service. The default is `false`.
	ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"`
}

Optional parameters for the method 'UpdateServiceConfiguration'

func (*UpdateServiceConfigurationParams) SetDefaultChatServiceRoleSid

func (params *UpdateServiceConfigurationParams) SetDefaultChatServiceRoleSid(DefaultChatServiceRoleSid string) *UpdateServiceConfigurationParams

func (*UpdateServiceConfigurationParams) SetDefaultConversationCreatorRoleSid

func (params *UpdateServiceConfigurationParams) SetDefaultConversationCreatorRoleSid(DefaultConversationCreatorRoleSid string) *UpdateServiceConfigurationParams

func (*UpdateServiceConfigurationParams) SetDefaultConversationRoleSid

func (params *UpdateServiceConfigurationParams) SetDefaultConversationRoleSid(DefaultConversationRoleSid string) *UpdateServiceConfigurationParams

func (*UpdateServiceConfigurationParams) SetReachabilityEnabled

func (params *UpdateServiceConfigurationParams) SetReachabilityEnabled(ReachabilityEnabled bool) *UpdateServiceConfigurationParams

type UpdateServiceConversationMessageParams

type UpdateServiceConversationMessageParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The channel specific identifier of the message's author. Defaults to `system`.
	Author *string `json:"Author,omitempty"`
	// The content of the message, can be up to 1,600 characters long.
	Body *string `json:"Body,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated. `null` if the message has not been edited.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
}

Optional parameters for the method 'UpdateServiceConversationMessage'

func (*UpdateServiceConversationMessageParams) SetAttributes

func (*UpdateServiceConversationMessageParams) SetAuthor

func (*UpdateServiceConversationMessageParams) SetBody

func (*UpdateServiceConversationMessageParams) SetDateCreated

func (*UpdateServiceConversationMessageParams) SetDateUpdated

func (*UpdateServiceConversationMessageParams) SetXTwilioWebhookEnabled

func (params *UpdateServiceConversationMessageParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *UpdateServiceConversationMessageParams

type UpdateServiceConversationParams

type UpdateServiceConversationParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// The human-readable name of this conversation, limited to 256 characters. Optional.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to.
	MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"`
	// Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active`
	State *string `json:"State,omitempty"`
	// ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
	TimersClosed *string `json:"Timers.Closed,omitempty"`
	// ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
	TimersInactive *string `json:"Timers.Inactive,omitempty"`
	// An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
	UniqueName *string `json:"UniqueName,omitempty"`
}

Optional parameters for the method 'UpdateServiceConversation'

func (*UpdateServiceConversationParams) SetAttributes

func (params *UpdateServiceConversationParams) SetAttributes(Attributes string) *UpdateServiceConversationParams

func (*UpdateServiceConversationParams) SetDateCreated

func (params *UpdateServiceConversationParams) SetDateCreated(DateCreated time.Time) *UpdateServiceConversationParams

func (*UpdateServiceConversationParams) SetDateUpdated

func (params *UpdateServiceConversationParams) SetDateUpdated(DateUpdated time.Time) *UpdateServiceConversationParams

func (*UpdateServiceConversationParams) SetFriendlyName

func (params *UpdateServiceConversationParams) SetFriendlyName(FriendlyName string) *UpdateServiceConversationParams

func (*UpdateServiceConversationParams) SetMessagingServiceSid

func (params *UpdateServiceConversationParams) SetMessagingServiceSid(MessagingServiceSid string) *UpdateServiceConversationParams

func (*UpdateServiceConversationParams) SetState

func (*UpdateServiceConversationParams) SetTimersClosed

func (params *UpdateServiceConversationParams) SetTimersClosed(TimersClosed string) *UpdateServiceConversationParams

func (*UpdateServiceConversationParams) SetTimersInactive

func (params *UpdateServiceConversationParams) SetTimersInactive(TimersInactive string) *UpdateServiceConversationParams

func (*UpdateServiceConversationParams) SetUniqueName

func (params *UpdateServiceConversationParams) SetUniqueName(UniqueName string) *UpdateServiceConversationParams

func (*UpdateServiceConversationParams) SetXTwilioWebhookEnabled

func (params *UpdateServiceConversationParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *UpdateServiceConversationParams

type UpdateServiceConversationParticipantParams

type UpdateServiceConversationParticipantParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters.
	Identity *string `json:"Identity,omitempty"`
	// Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant.
	LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"`
	// Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant.
	LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"`
	// The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it.
	MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"`
	// The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it.
	MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"`
	// The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant.
	RoleSid *string `json:"RoleSid,omitempty"`
}

Optional parameters for the method 'UpdateServiceConversationParticipant'

func (*UpdateServiceConversationParticipantParams) SetAttributes

func (*UpdateServiceConversationParticipantParams) SetDateCreated

func (*UpdateServiceConversationParticipantParams) SetDateUpdated

func (*UpdateServiceConversationParticipantParams) SetIdentity

func (*UpdateServiceConversationParticipantParams) SetLastReadMessageIndex

func (params *UpdateServiceConversationParticipantParams) SetLastReadMessageIndex(LastReadMessageIndex int32) *UpdateServiceConversationParticipantParams

func (*UpdateServiceConversationParticipantParams) SetLastReadTimestamp

func (params *UpdateServiceConversationParticipantParams) SetLastReadTimestamp(LastReadTimestamp string) *UpdateServiceConversationParticipantParams

func (*UpdateServiceConversationParticipantParams) SetMessagingBindingProjectedAddress

func (params *UpdateServiceConversationParticipantParams) SetMessagingBindingProjectedAddress(MessagingBindingProjectedAddress string) *UpdateServiceConversationParticipantParams

func (*UpdateServiceConversationParticipantParams) SetMessagingBindingProxyAddress

func (params *UpdateServiceConversationParticipantParams) SetMessagingBindingProxyAddress(MessagingBindingProxyAddress string) *UpdateServiceConversationParticipantParams

func (*UpdateServiceConversationParticipantParams) SetRoleSid

func (*UpdateServiceConversationParticipantParams) SetXTwilioWebhookEnabled

func (params *UpdateServiceConversationParticipantParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *UpdateServiceConversationParticipantParams

type UpdateServiceConversationScopedWebhookParams

type UpdateServiceConversationScopedWebhookParams struct {
	// The list of events, firing webhook event for this Conversation.
	ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"`
	// The studio flow SID, where the webhook should be sent to.
	ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"`
	// The HTTP method to be used when sending a webhook request.
	ConfigurationMethod *string `json:"Configuration.Method,omitempty"`
	// The list of keywords, firing webhook event for this Conversation.
	ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"`
	// The absolute url the webhook request should be sent to.
	ConfigurationUrl *string `json:"Configuration.Url,omitempty"`
}

Optional parameters for the method 'UpdateServiceConversationScopedWebhook'

func (*UpdateServiceConversationScopedWebhookParams) SetConfigurationFilters

func (params *UpdateServiceConversationScopedWebhookParams) SetConfigurationFilters(ConfigurationFilters []string) *UpdateServiceConversationScopedWebhookParams

func (*UpdateServiceConversationScopedWebhookParams) SetConfigurationFlowSid

func (params *UpdateServiceConversationScopedWebhookParams) SetConfigurationFlowSid(ConfigurationFlowSid string) *UpdateServiceConversationScopedWebhookParams

func (*UpdateServiceConversationScopedWebhookParams) SetConfigurationMethod

func (params *UpdateServiceConversationScopedWebhookParams) SetConfigurationMethod(ConfigurationMethod string) *UpdateServiceConversationScopedWebhookParams

func (*UpdateServiceConversationScopedWebhookParams) SetConfigurationTriggers

func (params *UpdateServiceConversationScopedWebhookParams) SetConfigurationTriggers(ConfigurationTriggers []string) *UpdateServiceConversationScopedWebhookParams

func (*UpdateServiceConversationScopedWebhookParams) SetConfigurationUrl

type UpdateServiceNotificationParams

type UpdateServiceNotificationParams struct {
	// Whether to send a notification when a participant is added to a conversation. The default is `false`.
	AddedToConversationEnabled *bool `json:"AddedToConversation.Enabled,omitempty"`
	// The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`.
	AddedToConversationSound *string `json:"AddedToConversation.Sound,omitempty"`
	// The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`.
	AddedToConversationTemplate *string `json:"AddedToConversation.Template,omitempty"`
	// Weather the notification logging is enabled.
	LogEnabled *bool `json:"LogEnabled,omitempty"`
	// Whether the new message badge is enabled. The default is `false`.
	NewMessageBadgeCountEnabled *bool `json:"NewMessage.BadgeCountEnabled,omitempty"`
	// Whether to send a notification when a new message is added to a conversation. The default is `false`.
	NewMessageEnabled *bool `json:"NewMessage.Enabled,omitempty"`
	// The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`.
	NewMessageSound *string `json:"NewMessage.Sound,omitempty"`
	// The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`.
	NewMessageTemplate *string `json:"NewMessage.Template,omitempty"`
	// Whether to send a notification to a user when they are removed from a conversation. The default is `false`.
	RemovedFromConversationEnabled *bool `json:"RemovedFromConversation.Enabled,omitempty"`
	// The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`.
	RemovedFromConversationSound *string `json:"RemovedFromConversation.Sound,omitempty"`
	// The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`.
	RemovedFromConversationTemplate *string `json:"RemovedFromConversation.Template,omitempty"`
}

Optional parameters for the method 'UpdateServiceNotification'

func (*UpdateServiceNotificationParams) SetAddedToConversationEnabled

func (params *UpdateServiceNotificationParams) SetAddedToConversationEnabled(AddedToConversationEnabled bool) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetAddedToConversationSound

func (params *UpdateServiceNotificationParams) SetAddedToConversationSound(AddedToConversationSound string) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetAddedToConversationTemplate

func (params *UpdateServiceNotificationParams) SetAddedToConversationTemplate(AddedToConversationTemplate string) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetLogEnabled

func (params *UpdateServiceNotificationParams) SetLogEnabled(LogEnabled bool) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetNewMessageBadgeCountEnabled

func (params *UpdateServiceNotificationParams) SetNewMessageBadgeCountEnabled(NewMessageBadgeCountEnabled bool) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetNewMessageEnabled

func (params *UpdateServiceNotificationParams) SetNewMessageEnabled(NewMessageEnabled bool) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetNewMessageSound

func (params *UpdateServiceNotificationParams) SetNewMessageSound(NewMessageSound string) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetNewMessageTemplate

func (params *UpdateServiceNotificationParams) SetNewMessageTemplate(NewMessageTemplate string) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetRemovedFromConversationEnabled

func (params *UpdateServiceNotificationParams) SetRemovedFromConversationEnabled(RemovedFromConversationEnabled bool) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetRemovedFromConversationSound

func (params *UpdateServiceNotificationParams) SetRemovedFromConversationSound(RemovedFromConversationSound string) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetRemovedFromConversationTemplate

func (params *UpdateServiceNotificationParams) SetRemovedFromConversationTemplate(RemovedFromConversationTemplate string) *UpdateServiceNotificationParams

type UpdateServiceRoleParams

type UpdateServiceRoleParams struct {
	// A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`.
	Permission *[]string `json:"Permission,omitempty"`
}

Optional parameters for the method 'UpdateServiceRole'

func (*UpdateServiceRoleParams) SetPermission

func (params *UpdateServiceRoleParams) SetPermission(Permission []string) *UpdateServiceRoleParams

type UpdateServiceUserParams

type UpdateServiceUserParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user.
	RoleSid *string `json:"RoleSid,omitempty"`
}

Optional parameters for the method 'UpdateServiceUser'

func (*UpdateServiceUserParams) SetAttributes

func (params *UpdateServiceUserParams) SetAttributes(Attributes string) *UpdateServiceUserParams

func (*UpdateServiceUserParams) SetFriendlyName

func (params *UpdateServiceUserParams) SetFriendlyName(FriendlyName string) *UpdateServiceUserParams

func (*UpdateServiceUserParams) SetRoleSid

func (params *UpdateServiceUserParams) SetRoleSid(RoleSid string) *UpdateServiceUserParams

func (*UpdateServiceUserParams) SetXTwilioWebhookEnabled

func (params *UpdateServiceUserParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *UpdateServiceUserParams

type UpdateUserParams

type UpdateUserParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user.
	RoleSid *string `json:"RoleSid,omitempty"`
}

Optional parameters for the method 'UpdateUser'

func (*UpdateUserParams) SetAttributes

func (params *UpdateUserParams) SetAttributes(Attributes string) *UpdateUserParams

func (*UpdateUserParams) SetFriendlyName

func (params *UpdateUserParams) SetFriendlyName(FriendlyName string) *UpdateUserParams

func (*UpdateUserParams) SetRoleSid

func (params *UpdateUserParams) SetRoleSid(RoleSid string) *UpdateUserParams

func (*UpdateUserParams) SetXTwilioWebhookEnabled

func (params *UpdateUserParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *UpdateUserParams

Source Files

Jump to

Keyboard shortcuts

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