top

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

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

Go to latest
Published: Oct 24, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	AppKey       string // TOP分配给应用的AppKey
	AppSecret    string // TOP分配给应用的AppSecret
	Session      string // TOP颁发给应用的授权信息
	PartnerID    string // 合作伙伴身份标识
	TargetAppKey string // 被调用的目标AppKey
	Simplify     bool   // 是否采用精简JSON返回格式
	Sandbox      bool   // 是否采用沙箱环境
}

func NewClient

func NewClient(appKey, appSecret string) *Client

func (*Client) Do

func (c *Client) Do(req Request) (js *simplejson.Json, err error)

type Request

type Request interface {
	Method() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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