Documentation
¶
Overview ¶
Package context contains auto-generated files. DO NOT MODIFY
Package context 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 step context resources See https://www.twilio.com/docs/studio/rest-api/v2/step-context for more details
func New ¶
func New(client *client.Client, properties ClientProperties) *Client
New creates a new instance of the context client
func (Client) Fetch ¶
func (c Client) Fetch() (*FetchContextResponse, error)
Fetch retrieves a step context resource See https://www.twilio.com/docs/studio/rest-api/v2/step-context#fetch-a-single-step-context 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) (*FetchContextResponse, error)
FetchWithContext retrieves a step context resource See https://www.twilio.com/docs/studio/rest-api/v2/step-context#fetch-a-single-step-context for more details
type ClientProperties ¶
ClientProperties are the properties required to manage the context resources
type FetchContextResponse ¶
type FetchContextResponse struct { AccountSid string `json:"account_sid"` Context interface{} `json:"context"` ExecutionSid string `json:"execution_sid"` FlowSid string `json:"flow_sid"` Sid string `json:"sid"` StepSid string `json:"step_sid"` URL string `json:"url"` }
FetchContextResponse defines the response fields for the retrieved step context