access_tokens

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package access_tokens contains auto-generated files. DO NOT MODIFY

Package access_tokens 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 access token resources See https://www.twilio.com/docs/verify/api/access-token for more details This client is currently in beta and subject to change. Please use with caution

func New

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

New creates a new instance of the access tokens client

func (Client) Create

Create creates an access token See https://www.twilio.com/docs/verify/api/access-token#create-an-accesstoken-resource for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information This resource is currently in beta and subject to change. Please use with caution

func (Client) CreateWithContext

func (c Client) CreateWithContext(context context.Context, input *CreateAccessTokenInput) (*CreateAccessTokenResponse, error)

CreateWithContext creates an access token See https://www.twilio.com/docs/verify/api/access-token#create-an-accesstoken-resource for more details This resource is currently in beta and subject to change. Please use with caution

type ClientProperties

type ClientProperties struct {
	ServiceSid string
}

ClientProperties are the properties required to manage the access tokens resources

type CreateAccessTokenInput

type CreateAccessTokenInput struct {
	FactorType string `validate:"required" form:"FactorType"`
	Identity   string `validate:"required" form:"Identity"`
}

CreateAccessTokenInput defines the input fields for creating a new access token

type CreateAccessTokenResponse

type CreateAccessTokenResponse struct {
	Token string `json:"token"`
}

CreateAccessTokenResponse defines the response fields for the created access token

Jump to

Keyboard shortcuts

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