accessToken

package
v0.0.0-...-014db41 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BonCookie = "MHwwfC0xODMxNzI2NTk2fC03NjkzMjUxNzAzMnwxfDF8MXwx"
View Source
var UserAgent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct {
	AccessToken string
	Expiration  int64
}

func GetAccessToken

func GetAccessToken(username string, password string) (*AccessToken, error)

func (*AccessToken) CreateGetRequest

func (accessToken *AccessToken) CreateGetRequest(url string) (*http.Request, error)

func (*AccessToken) CreatePostRequest

func (accessToken *AccessToken) CreatePostRequest(url string, body io.Reader) (*http.Request, error)

func (*AccessToken) CreatePutRequest

func (accessToken *AccessToken) CreatePutRequest(url string, body io.Reader) (*http.Request, error)

Jump to

Keyboard shortcuts

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