member

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package member contains auto-generated files. DO NOT MODIFY

Package member contains auto-generated files. DO NOT MODIFY

Package member 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 a specific member resource See https://www.twilio.com/docs/voice/api/member-resource for more details

func New

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

New creates a new instance of the member client

func (Client) Fetch

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

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

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

func (Client) Update

func (c Client) Update(input *UpdateMemberInput) (*UpdateMemberResponse, error)

Update modifies a member resource See https://www.twilio.com/docs/voice/api/member-resource#update-a-member-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 *UpdateMemberInput) (*UpdateMemberResponse, error)

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

type ClientProperties

type ClientProperties struct {
	AccountSid string
	QueueSid   string
	Sid        string
}

ClientProperties are the properties required to manage the member resources

type FetchMemberResponse

type FetchMemberResponse struct {
	CallSid      string            `json:"call_sid"`
	DateEnqueued utils.RFC2822Time `json:"date_enqueued"`
	Position     int               `json:"position"`
	QueueSid     string            `json:"queue_sid"`
	WaitTime     int               `json:"wait_time"`
}

FetchMemberResponse defines the response fields for retrieving a member

type UpdateMemberInput

type UpdateMemberInput struct {
	Method *string `form:"Method,omitempty"`
	URL    string  `validate:"required" form:"Url"`
}

UpdateMemberInput defines input fields for updating a member

type UpdateMemberResponse

type UpdateMemberResponse struct {
	CallSid      string            `json:"call_sid"`
	DateEnqueued utils.RFC2822Time `json:"date_enqueued"`
	Position     int               `json:"position"`
	QueueSid     string            `json:"queue_sid"`
	WaitTime     int               `json:"wait_time"`
}

UpdateMemberResponse defines the response fields for the updated member

Jump to

Keyboard shortcuts

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