mafengwo

package module
v0.0.0-...-c7e9ee2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ClientID client_id
	ClientID int32
	// ClientSecret client_secret
	ClientSecret string
	// PartnerID partner id
	PartnerID int32
	// AseKey ase key
	AseKey string
	// AccessToken access token
	AccessToken string
)

Functions

This section is empty.

Types

type Deals

type Deals struct {
	ErrNo   int32                  `json:"errno"`
	Message string                 `json:"message"`
	Data    map[string]interface{} `json:"data"`
	Error   string                 `json:"error"`
}

Deals deals

func NewDeals

func NewDeals() *Deals

NewDeals new deals

func (*Deals) Fetch

func (d *Deals) Fetch(action string, data []byte) ([]byte, error)

Fetch fetch rest

type Oauth2

type Oauth2 struct {
	AccessToken string `json:"access_token"`
	TokenType   string `json:"token_type"`
	ExpiresIn   int    `json:"expires_in"`
}

Oauth2 oauth2

func NewOauth2

func NewOauth2() *Oauth2

NewOauth2 new oauth2

func (*Oauth2) Token

func (o *Oauth2) Token() (*Oauth2, error)

Token get access token

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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