core

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PRODUCT_GATEWAY = "https://eco.taobao.com/router/rest"
	SANDBOX_GATEWAY = "https://gw.api.tbsandbox.com/router/rest"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SDKClient

type SDKClient struct {
	// contains filtered or unexported fields
}

func NewSDKClient

func NewSDKClient(appKey string, secret string) *SDKClient

func (*SDKClient) DisableSandbox

func (c *SDKClient) DisableSandbox()

func (*SDKClient) Post

func (c *SDKClient) Post(req model.IRequest, resp model.IResponse, session string) error

func (*SDKClient) SetAPIFormat

func (c *SDKClient) SetAPIFormat(format model.APIFormat)

func (*SDKClient) SetDebug

func (c *SDKClient) SetDebug(debug bool)

func (*SDKClient) SetSignMethod

func (c *SDKClient) SetSignMethod(method model.SignMethod)

func (*SDKClient) UseSandbox

func (c *SDKClient) UseSandbox()

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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