Documentation ¶
Overview ¶
Package notification contains auto-generated files. DO NOT MODIFY
Package notification contains auto-generated files. DO NOT MODIFY
Package notification contains auto-generated files. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Fetch() (*FetchNotificationResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchNotificationResponse, error)
- func (c Client) Update(input *UpdateNotificationInput) (*UpdateNotificationResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateNotificationInput) (*UpdateNotificationResponse, error)
- type ClientProperties
- type FetchNotificationConversationActionResponse
- type FetchNotificationNewMessageResponse
- type FetchNotificationResponse
- type UpdateNotificationConversationActionInput
- type UpdateNotificationConversationActionResponse
- type UpdateNotificationInput
- type UpdateNotificationNewMessageInput
- type UpdateNotificationNewMessageResponse
- type UpdateNotificationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for managing service notification See https://www.twilio.com/docs/conversations/api/service-notification-resource for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the notification client
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchNotificationResponse, error)
Fetch retrieves service notification resource See https://www.twilio.com/docs/conversations/api/service-notification-resource#fetch-a-servicenotification-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) FetchWithContext ¶
func (c Client) FetchWithContext(context context.Context) (*FetchNotificationResponse, error)
FetchWithContext retrieves service notification resource See https://www.twilio.com/docs/conversations/api/service-notification-resource#fetch-a-servicenotification-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateNotificationInput) (*UpdateNotificationResponse, error)
Update modifies a service notification resource See https://www.twilio.com/docs/conversations/api/service-notification-resource#update-a-servicenotification-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) UpdateWithContext ¶
func (c Client) UpdateWithContext(context context.Context, input *UpdateNotificationInput) (*UpdateNotificationResponse, error)
UpdateWithContext modifies a service notification resource See https://www.twilio.com/docs/conversations/api/service-notification-resource#update-a-servicenotification-resource for more details
type ClientProperties ¶
type ClientProperties struct {
ServiceSid string
}
ClientProperties are the properties required to manage the notification resources
type FetchNotificationConversationActionResponse ¶ added in v0.6.0
type FetchNotificationNewMessageResponse ¶ added in v0.6.0
type FetchNotificationResponse ¶
type FetchNotificationResponse struct { AccountSid string `json:"account_sid"` AddedToConversation FetchNotificationConversationActionResponse `json:"added_to_conversation"` ChatServiceSid string `json:"chat_service_sid"` LogEnabled bool `json:"log_enabled"` NewMessage FetchNotificationNewMessageResponse `json:"new_message"` RemovedFromConversation FetchNotificationConversationActionResponse `json:"removed_from_conversation"` URL string `json:"url"` }
FetchNotificationResponse defines the response fields for the retrieved service notification
type UpdateNotificationConversationActionInput ¶ added in v0.6.0
type UpdateNotificationConversationActionResponse ¶ added in v0.6.0
type UpdateNotificationInput ¶
type UpdateNotificationInput struct { AddedToConversation *UpdateNotificationConversationActionInput `form:"AddedToConversation,omitempty"` LogEnabled *bool `form:"LogEnabled,omitempty"` NewMessage *UpdateNotificationNewMessageInput `form:"NewMessage,omitempty"` RemovedFromConversation *UpdateNotificationConversationActionInput `form:"RemovedFromConversation,omitempty"` }
UpdateNotificationInput defines input fields for updating a service notification resource
type UpdateNotificationNewMessageInput ¶ added in v0.6.0
type UpdateNotificationNewMessageResponse ¶ added in v0.6.0
type UpdateNotificationResponse ¶
type UpdateNotificationResponse struct { AccountSid string `json:"account_sid"` AddedToConversation UpdateNotificationConversationActionResponse `json:"added_to_conversation"` ChatServiceSid string `json:"chat_service_sid"` LogEnabled bool `json:"log_enabled"` NewMessage UpdateNotificationNewMessageResponse `json:"new_message"` RemovedFromConversation UpdateNotificationConversationActionResponse `json:"removed_from_conversation"` URL string `json:"url"` }
UpdateNotificationResponse defines the response fields for the updated service notification