module
Version:
v0.0.0-...-4544830
Opens a new window with list of versions in this module.
Published: Sep 16, 2019
License: MIT
Opens a new window with license information.
README
¶
中通开放平台SDK(Go版)
参考
中通开放平台SDK
使用方式
go get -u github.com/chiahan1123/zopsdk-go
client, err := zop.NewClient("kfpttestCode", "kfpttestkey==")
if err != nil {
// handle error
return
}
params := make(map[string]string)
params["request"] = `[{"partnerCode":"360844819234","companyCode":"GP1551922487","reason":"客户取消"}]`
resp, err := client.Execute(context.Background(), &zop.Request{
URL: "http://58.40.16.122:8080/cancelOrder",
Params: params,
})
if err != nil {
// handle error
return
}
fmt.Println(resp)
Directories
¶
Click to show internal directories.
Click to hide internal directories.