Documentation
¶
Index ¶
- Variables
- func WithFormat(format string) option
- func WithSimplify(isSimplified bool) option
- func WithVersion(version string) option
- type APIRequest
- type Values
- func (vals Values) Delete(key string)
- func (vals Values) Get(key string) interface{}
- func (vals Values) GetResult(resType interface{}) (interface{}, error)
- func (vals Values) Set(key string, value interface{})
- func (vals Values) String() string
- func (vals Values) ToQueryParams() (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCallTOPAPIFailed = errors.New("call Taobao Open Platform API failed") ErrTOPAPIBizError = errors.New("call Taobao Open Platform API biz error") )
Functions ¶
func WithFormat ¶
func WithFormat(format string) option
func WithSimplify ¶
func WithSimplify(isSimplified bool) option
func WithVersion ¶
func WithVersion(version string) option
Types ¶
type APIRequest ¶
type APIRequest struct {
// contains filtered or unexported fields
}
func NewRequest ¶
func NewRequest(appKey, appSecret, sessionKey string, options ...option) APIRequest
Click to show internal directories.
Click to hide internal directories.