go get -u github.com/f1748x/JstSDK
聚水潭文档:https://open.jushuitan.com/document/2242.html
- 1.找到你项目的go.mod文件
- 2.打开找到
github.com/f1748x/JstSDK v0.0.3
如要更新版本至github.com/f1748x/JstSDK v0.0.4
import (
"github.com/f1748x/JstSDK"
)
Jst := jst.NewClient(Config.Jpartnerid, Config.Jpartnerkey, Config.Jtoken)
tmap := make(map[string]interface{})
tmap["page_size"] = 50
tmap["page_index"] = 1
tmap["status"] = "Sent"
tmap["modified_begin"] = "2021-03-1 00:00:00"
tmap["modified_end"] = "2021-03-7 00:00:00"
//Jst.Send("method",data)
data := Jst.Send("orders.single.query",tmap)//string
- 例子: 调用聚水潭订单查询接口: orders.single.query
import (
"github.com/f1748x/JstSDK"
)
Jst := jst.NewClient(Config.Jpartnerid, Config.Jpartnerkey, Config.Jtoken)
data :=Jst.Order_Signle_Query("2021-03-1 00:00:00","2021-03-7 00:00:00")
//订单数据
聚水潭 | JstSDK | 参数说明 | 接口名称 |
---|---|---|---|
order.signle.query | Jst.Order_Signle_Query() | args ...string | 获取订单 |
shops.query | Jst.Shops_Query() | args ...string | 获取店铺 |