request

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoxState

type BoxState struct {
	jwt.RegisteredClaims
	UserID    string `json:"user_id" mapstructure:"user_id"`
	FileID    string `json:"file_id" mapstructure:"file_id"`
	UserAgent string `json:"user_agent" mapstructure:"user_agent"`
	ForceEdit bool   `json:"force_edit,omitmepty"`
}

func (BoxState) ToJSON

func (u BoxState) ToJSON() []byte

type BoxUser

type BoxUser struct {
	ID           string `json:"id"`
	AccessToken  string `json:"access_token" mapstructure:"access_token"`
	RefreshToken string `json:"refresh_token" mapstructure:"refresh_token"`
	TokenType    string `json:"token_type" mapstructure:"token_type"`
	ExpiresIn    int64  `json:"expires_in" mapstructure:"expires_in"`
}

func (BoxUser) ToJSON

func (u BoxUser) ToJSON() []byte

type CallbackRequest

type CallbackRequest struct {
	Actions []struct {
		Type   int    `json:"type"`
		UserID string `json:"userid"`
	} `json:"actions"`
	Key    string   `json:"key"`
	Status int      `json:"status"`
	Users  []string `json:"users"`
	URL    string   `json:"url"`
	Token  string   `json:"token"`
}

func (CallbackRequest) ToJSON

func (cr CallbackRequest) ToJSON() []byte

func (*CallbackRequest) Validate

func (c *CallbackRequest) Validate() error

type ConvertAPIRequest

type ConvertAPIRequest struct {
	jwt.RegisteredClaims
	Async      bool   `json:"async"`
	Key        string `json:"key"`
	Filetype   string `json:"filetype"`
	Outputtype string `json:"outputtype"`
	URL        string `json:"url"`
	Token      string `json:"token,omitempty"`
}

func (ConvertAPIRequest) ToJSON

func (r ConvertAPIRequest) ToJSON() []byte

type ConvertRequestBody

type ConvertRequestBody struct {
	Action    string `json:"action"`
	UserID    string `json:"user_id"`
	FileID    string `json:"file_id"`
	ForceEdit bool   `json:"force_edit"`
}

func (ConvertRequestBody) ToJSON

func (r ConvertRequestBody) ToJSON() []byte

type MissingRequestFieldsError

type MissingRequestFieldsError struct {
	Request string
	Field   string
	Reason  string
}

func (*MissingRequestFieldsError) Error

func (e *MissingRequestFieldsError) Error() string

Jump to

Keyboard shortcuts

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