webhooks

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Overview

Package webhooks contains auto-generated files. DO NOT MODIFY

Package webhooks contains auto-generated files. DO NOT MODIFY

Package webhooks contains auto-generated files. DO NOT MODIFY

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for managing webhook resources See https://www.twilio.com/docs/conversations/api/conversation-scoped-webhook-resource for more details

func New

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

New creates a new instance of the webhooks client

func (*Client) NewConversationWebhooksPaginator

func (c *Client) NewConversationWebhooksPaginator() *ConversationWebhooksPaginator

NewConversationWebhooksPaginator creates a new instance of the paginator for Page.

func (*Client) NewConversationWebhooksPaginatorWithOptions

func (c *Client) NewConversationWebhooksPaginatorWithOptions(options *ConversationWebhooksPageOptions) *ConversationWebhooksPaginator

NewConversationWebhooksPaginatorWithOptions creates a new instance of the paginator for Page with options.

type ClientProperties

type ClientProperties struct {
	ConversationSid string
}

ClientProperties are the properties required to manage the webhooks resources

type ConversationWebhooksPage

type ConversationWebhooksPage struct {
	CurrentPage *ConversationWebhooksPageResponse
	Error       error
	// contains filtered or unexported fields
}

ConversationWebhooksPage defines the fields for the page The CurrentPage and Error fields can be used to access the PageConversationWebhookResponse or error that is returned from the api call(s)

type ConversationWebhooksPageOptions

type ConversationWebhooksPageOptions struct {
	PageSize  *int
	Page      *int
	PageToken *string
}

ConversationWebhooksPageOptions defines the query options for the api operation

type ConversationWebhooksPageResponse

type ConversationWebhooksPageResponse struct {
	Meta     PageMetaResponse                  `json:"meta"`
	Webhooks []PageConversationWebhookResponse `json:"webhooks"`
}

ConversationWebhooksPageResponse defines the response fields for the webhooks page

type ConversationWebhooksPaginator

type ConversationWebhooksPaginator struct {
	Page     *ConversationWebhooksPage
	Webhooks []PageConversationWebhookResponse
	// contains filtered or unexported fields
}

ConversationWebhooksPaginator defines the fields for makings paginated api calls Webhooks is an array of webhooks that have been returned from all of the page calls

func (*ConversationWebhooksPaginator) CurrentPage

CurrentPage retrieves the results for the current page

func (*ConversationWebhooksPaginator) Error

Error retrieves the error returned from the page

func (*ConversationWebhooksPaginator) Next

Next retrieves the next page of results. Next will return false when either an error occurs or there are no more pages to iterate Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (*ConversationWebhooksPaginator) NextWithContext

func (p *ConversationWebhooksPaginator) NextWithContext(context context.Context) bool

NextWithContext retrieves the next page of results. NextWithContext will return false when either an error occurs or there are no more pages to iterate

type CreateConversationWebhookInput

type CreateConversationWebhookInput struct {
	ConfigurationFilters     *[]string `form:"Configuration.Filters,omitempty"`
	ConfigurationFlowSid     *string   `form:"Configuration.FlowSid,omitempty"`
	ConfigurationMethod      *string   `form:"Configuration.Method,omitempty"`
	ConfigurationReplayAfter *int      `form:"Configuration.ReplayAfter,omitempty"`
	ConfigurationTriggers    *[]string `form:"Configuration.Triggers,omitempty"`
	ConfigurationURL         *string   `form:"Configuration.Url,omitempty"`
	Target                   string    `validate:"required" form:"Target"`
}

CreateConversationWebhookInput defines the input fields for creating a new webhook resource

type CreateConversationWebhookResponse

type CreateConversationWebhookResponse struct {
	AccountSid      string                                         `json:"account_sid"`
	Configuration   CreateConversationWebhookResponseConfiguration `json:"configuration"`
	ConversationSid string                                         `json:"conversation_sid"`
	DateCreated     time.Time                                      `json:"date_created"`
	DateUpdated     *time.Time                                     `json:"date_updated,omitempty"`
	Sid             string                                         `json:"sid"`
	Target          string                                         `json:"target"`
	URL             string                                         `json:"url"`
}

CreateConversationWebhookResponse defines the response fields for the created webhook

type CreateConversationWebhookResponseConfiguration

type CreateConversationWebhookResponseConfiguration struct {
	Filters     *[]string `json:"filters,omitempty"`
	FlowSid     *string   `json:"flow_sid,omitempty"`
	Method      *string   `json:"method,omitempty"`
	ReplayAfter *int      `json:"replay_after,omitempty"`
	Triggers    *[]string `json:"triggers,omitempty"`
	URL         *string   `json:"url,omitempty"`
}

type PageConversationWebhookResponse

type PageConversationWebhookResponse struct {
	AccountSid      string                                       `json:"account_sid"`
	Configuration   PageConversationWebhookResponseConfiguration `json:"configuration"`
	ConversationSid string                                       `json:"conversation_sid"`
	DateCreated     time.Time                                    `json:"date_created"`
	DateUpdated     *time.Time                                   `json:"date_updated,omitempty"`
	Sid             string                                       `json:"sid"`
	Target          string                                       `json:"target"`
	URL             string                                       `json:"url"`
}

type PageConversationWebhookResponseConfiguration

type PageConversationWebhookResponseConfiguration struct {
	Filters     *[]string `json:"filters,omitempty"`
	FlowSid     *string   `json:"flow_sid,omitempty"`
	Method      *string   `json:"method,omitempty"`
	ReplayAfter *int      `json:"replay_after,omitempty"`
	Triggers    *[]string `json:"triggers,omitempty"`
	URL         *string   `json:"url,omitempty"`
}

type PageMetaResponse

type PageMetaResponse struct {
	FirstPageURL    string  `json:"first_page_url"`
	Key             string  `json:"key"`
	NextPageURL     *string `json:"next_page_url,omitempty"`
	Page            int     `json:"page"`
	PageSize        int     `json:"page_size"`
	PreviousPageURL *string `json:"previous_page_url,omitempty"`
	URL             string  `json:"url"`
}

Jump to

Keyboard shortcuts

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