Documentation ¶
Index ¶
- Constants
- type DefaultRequest
- type DefaultResponse
- type TopClient
- func (u *TopClient) CreateSign(params map[string]interface{})
- func (u *TopClient) CreateStrParam() string
- func (u *TopClient) Exec(request DefaultRequest, response DefaultResponse) error
- func (u *TopClient) Execute(params map[string]interface{}) (string, error)
- func (u *TopClient) Init(appKey, appSecret, sessionkey string)
- func (u *TopClient) PostRequest(uri, body string) (string, error)
Constants ¶
View Source
const ( ApiGatewayUrl = "https://open.suning.com/api/http/sopRequest" ApiFormat = "json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultRequest ¶
type DefaultResponse ¶
type TopClient ¶
type TopClient struct { Appkey string AppSecret string RequestTimeOut time.Duration HttpClient *http.Client ProxyUrl string SysParameters *url.Values //系统变量 }
func (*TopClient) CreateSign ¶
func (*TopClient) CreateStrParam ¶
func (*TopClient) Exec ¶
func (u *TopClient) Exec(request DefaultRequest, response DefaultResponse) error
Click to show internal directories.
Click to hide internal directories.