jop_sdk

package
v0.0.0-...-555e155 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RootEndpoint = "https://router.jd.com/api" // 京东联盟 param_json
	// RootEndpoint = "https://api.jd.com/routerjson" // 宙斯 360buy_param_json
	AppKey      = ""
	SecretKey   = ""
	AccessToken = ""
	Version     = "1.0"
)

Functions

This section is empty.

Types

type Jos

type Jos struct {
}

宙斯

func NewJos

func NewJos() *Jos

type Param

type Param struct {
	Method       string                 `json:"method"`                 // API接口名称
	AppKey       string                 `json:"app_key"`                // 分配给应用的AppKey
	AccessToken  string                 `json:"access_token,omitempty"` // Oauth2颁发的动态令牌,暂不支持使用
	Timestamp    string                 `json:"timestamp"`              // 时间戳,格式为yyyy-MM-dd  HH:mm:ss,时区为GMT+8
	Format       string                 `json:"format"`                 // 响应格式。暂时只支持json
	Version      string                 `json:"v"`                      // API协议版本,可选值:2.0
	SignMethod   string                 `json:"sign_method"`            // 签名的摘要算法, md5
	Sign         string                 `json:"sign"`                   // API输入参数签名结果
	ParamJson    map[string]interface{} `json:"param_json,omitempty"`
	BuyParamJson map[string]interface{} `json:"360buy_param_json,omitempty"`
}

func NewParam

func NewParam(method, v string) *Param

type Union

type Union struct {
}

京东联盟

func NewUnion

func NewUnion() *Union

func (*Union) GetCommonPromotion

func (u *Union) GetCommonPromotion(params map[string]interface{}) []byte

func (*Union) QueryJingfenGoods

func (u *Union) QueryJingfenGoods(params map[string]interface{}) []byte

func (*Union) QueryOrder

func (u *Union) QueryOrder(params map[string]interface{}) []byte

Jump to

Keyboard shortcuts

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