Documentation ¶
Overview ¶
Package bindings contains auto-generated files. DO NOT MODIFY
Package bindings contains auto-generated files. DO NOT MODIFY
Index ¶
- type Client
- func (c *Client) NewUserBindingsPaginator() *UserBindingsPaginator
- func (c *Client) NewUserBindingsPaginatorWithOptions(options *UserBindingsPageOptions) *UserBindingsPaginator
- func (c Client) Page(options *UserBindingsPageOptions) (*UserBindingsPageResponse, error)
- func (c Client) PageWithContext(context context.Context, options *UserBindingsPageOptions) (*UserBindingsPageResponse, error)
- type ClientProperties
- type PageMetaResponse
- type PageUserBindingResponse
- type UserBindingsPage
- type UserBindingsPageOptions
- type UserBindingsPageResponse
- type UserBindingsPaginator
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 user binding resources See https://www.twilio.com/docs/chat/rest/user-binding-resource for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the bindings client
func (*Client) NewUserBindingsPaginator ¶
func (c *Client) NewUserBindingsPaginator() *UserBindingsPaginator
NewUserBindingsPaginator creates a new instance of the paginator for Page.
func (*Client) NewUserBindingsPaginatorWithOptions ¶
func (c *Client) NewUserBindingsPaginatorWithOptions(options *UserBindingsPageOptions) *UserBindingsPaginator
NewUserBindingsPaginatorWithOptions creates a new instance of the paginator for Page with options.
func (Client) Page ¶
func (c Client) Page(options *UserBindingsPageOptions) (*UserBindingsPageResponse, error)
Page retrieves a page of user bindings See https://www.twilio.com/docs/chat/rest/user-binding-resource#read-multiple-userbinding-resources for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) PageWithContext ¶
func (c Client) PageWithContext(context context.Context, options *UserBindingsPageOptions) (*UserBindingsPageResponse, error)
PageWithContext retrieves a page of user bindings See https://www.twilio.com/docs/chat/rest/user-binding-resource#read-multiple-userbinding-resources for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the bindings resources
type PageMetaResponse ¶
type PageUserBindingResponse ¶
type PageUserBindingResponse struct { AccountSid string `json:"account_sid"` BindingType *string `json:"binding_type,omitempty"` CredentialSid string `json:"credential_sid"` DateCreated time.Time `json:"date_created"` DateUpdated *time.Time `json:"date_updated,omitempty"` Endpoint *string `json:"endpoint,omitempty"` Identity *string `json:"identity,omitempty"` MessageTypes *[]string `json:"message_types,omitempty"` ServiceSid string `json:"service_sid"` Sid string `json:"sid"` URL string `json:"url"` UserSid string `json:"user_sid"` }
type UserBindingsPage ¶
type UserBindingsPage struct { CurrentPage *UserBindingsPageResponse Error error // contains filtered or unexported fields }
UserBindingsPage defines the fields for the page The CurrentPage and Error fields can be used to access the PageUserBindingResponse or error that is returned from the api call(s)
type UserBindingsPageOptions ¶
type UserBindingsPageOptions struct { BindingType *[]string PageSize *int Page *int PageToken *string }
UserBindingsPageOptions defines the query options for the api operation
type UserBindingsPageResponse ¶
type UserBindingsPageResponse struct { Bindings []PageUserBindingResponse `json:"bindings"` Meta PageMetaResponse `json:"meta"` }
UserBindingsPageResponse defines the response fields for the user bindings page
type UserBindingsPaginator ¶
type UserBindingsPaginator struct { Page *UserBindingsPage Bindings []PageUserBindingResponse // contains filtered or unexported fields }
UserBindingsPaginator defines the fields for makings paginated api calls Bindings is an array of bindings that have been returned from all of the page calls
func (*UserBindingsPaginator) CurrentPage ¶
func (p *UserBindingsPaginator) CurrentPage() *UserBindingsPageResponse
CurrentPage retrieves the results for the current page
func (*UserBindingsPaginator) Error ¶
func (p *UserBindingsPaginator) Error() error
Error retrieves the error returned from the page
func (*UserBindingsPaginator) Next ¶
func (p *UserBindingsPaginator) Next() bool
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 (*UserBindingsPaginator) NextWithContext ¶
func (p *UserBindingsPaginator) 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