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 ¶
- type Client
- func (c Client) Fetch() (*FetchMemberResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchMemberResponse, error)
- func (c Client) Update(input *UpdateMemberInput) (*UpdateMemberResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateMemberInput) (*UpdateMemberResponse, error)
- type ClientProperties
- type FetchMemberResponse
- type UpdateMemberInput
- type UpdateMemberResponse
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 ¶
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