Documentation ¶
Overview ¶
This is an autogenerated file. DO NOT MODIFY
This is an autogenerated file. DO NOT MODIFY
This is an autogenerated file. DO NOT MODIFY
This is an autogenerated file. DO NOT MODIFY
Index ¶
- type Client
- func (c Client) Delete() error
- func (c Client) DeleteWithContext(context context.Context) error
- func (c Client) Fetch() (*FetchSessionResponse, error)
- func (c Client) FetchWithContext(context context.Context) (*FetchSessionResponse, error)
- func (c Client) Update(input *UpdateSessionInput) (*UpdateSessionResponse, error)
- func (c Client) UpdateWithContext(context context.Context, input *UpdateSessionInput) (*UpdateSessionResponse, error)
- type ClientProperties
- type FetchSessionResponse
- type UpdateSessionInput
- type UpdateSessionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Interaction func(string) *interaction.Client Interactions *interactions.Client Participant func(string) *participant.Client Participants *participants.Client // contains filtered or unexported fields }
Client for managing a specific session resource See https://www.twilio.com/docs/proxy/api/session for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the session client
func (Client) Delete ¶
Delete removes a session resource from the account See https://www.twilio.com/docs/proxy/api/session#delete-a-session-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information
func (Client) DeleteWithContext ¶
DeleteWithContext removes a session resource from the account See https://www.twilio.com/docs/proxy/api/session#delete-a-session-resource for more details
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchSessionResponse, error)
Fetch retrieves a session resource See https://www.twilio.com/docs/proxy/api/session#fetch-a-session-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) (*FetchSessionResponse, error)
FetchWithContext retrieves a session resource See https://www.twilio.com/docs/proxy/api/session#fetch-a-session-resource for more details
func (Client) Update ¶
func (c Client) Update(input *UpdateSessionInput) (*UpdateSessionResponse, error)
Update modifies a session resource See https://www.twilio.com/docs/proxy/api/session#update-a-session-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 *UpdateSessionInput) (*UpdateSessionResponse, error)
UpdateWithContext modifies a session resource See https://www.twilio.com/docs/proxy/api/session#update-a-session-resource for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the session resources
type FetchSessionResponse ¶
type FetchSessionResponse struct { AccountSid string `json:"account_sid"` ClosedReason *string `json:"closed_reason,omitempty"` DateCreated time.Time `json:"date_created"` DateEnded *time.Time `json:"date_ended,omitempty"` DateExpiry *time.Time `json:"date_expiry,omitempty"` DateLastInteraction *time.Time `json:"date_last_interaction,omitempty"` DateStarted *time.Time `json:"date_started,omitempty"` DateUpdated *time.Time `json:"date_updated,omitempty"` Mode *string `json:"mode,omitempty"` ServiceSid string `json:"service_sid"` Sid string `json:"sid"` Status *string `json:"status,omitempty"` Ttl *int `json:"ttl,omitempty"` URL string `json:"url"` UniqueName string `json:"unique_name"` }
FetchSessionResponse defines the response fields for the retrieved session
type UpdateSessionInput ¶
type UpdateSessionInput struct { DateExpiry *time.Time `form:"DateExpiry,omitempty"` Status *string `form:"Status,omitempty"` Ttl *int `form:"Ttl,omitempty"` }
UpdateSessionInput defines input fields for updating a session resource
type UpdateSessionResponse ¶
type UpdateSessionResponse struct { AccountSid string `json:"account_sid"` ClosedReason *string `json:"closed_reason,omitempty"` DateCreated time.Time `json:"date_created"` DateEnded *time.Time `json:"date_ended,omitempty"` DateExpiry *time.Time `json:"date_expiry,omitempty"` DateLastInteraction *time.Time `json:"date_last_interaction,omitempty"` DateStarted *time.Time `json:"date_started,omitempty"` DateUpdated *time.Time `json:"date_updated,omitempty"` Mode *string `json:"mode,omitempty"` ServiceSid string `json:"service_sid"` Sid string `json:"sid"` Status *string `json:"status,omitempty"` Ttl *int `json:"ttl,omitempty"` URL string `json:"url"` UniqueName string `json:"unique_name"` }
UpdateSessionResponse defines the response fields for the updated session
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This is an autogenerated file.
|
This is an autogenerated file. |
This is an autogenerated file.
|
This is an autogenerated file. |
This is an autogenerated file.
|
This is an autogenerated file. |
message_interactions
This is an autogenerated file.
|
This is an autogenerated file. |
This is an autogenerated file.
|
This is an autogenerated file. |