app

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HTTPClient *http.Client
}

Config is the result provided when the correct AccountSid & AuthToken are provided

type ErrorResponse

type ErrorResponse struct {
	Code     int    `json:"code"`
	Message  string `json:"message"`
	MoreInfo string `json:"more_info"`
	Status   int    `json:"status"`
}

ErrorResponse is the default error response for twilio API's

func (*ErrorResponse) Error

func (e *ErrorResponse) Error() string

Implements Golang's error interface.

func (*ErrorResponse) ErrorCode

func (e *ErrorResponse) ErrorCode() int

type InternalAuth

type InternalAuth struct {
	BasicAuth     string
	BaseUrl       string
	Configuration Config
	AccountSid    string
}

InternalAuth is the result returned when the correct AccountSid & AuthToken are provided

func NewDefaultAuth

func NewDefaultAuth(username, password string) InternalAuth

NewDefaultAuth Creates a new default Auth object -- An Internal function.

Jump to

Keyboard shortcuts

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