<!--[endif]-->测试请求:
http://orderprocesstest.haiziwang.com:8080/dap-web/pop/selectPopSkuList.do?jsonStr=
{"loginName":"xxxxxxxxxx","appkey":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","skuState":"1","page":
"1","pagesize":"10"}
线上IP:
<!--[endif]-->http://dapopen.haiziwang.com/pop/selectPopSkuList.do?jsonStr=
{"loginName":"xxxxxxxxxxxxx","appkey":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","skuState":"1","page":
"1","pagesize":"10"}
传入参数:json串
Var jsonStr ={
"loginName": "xxxxxxxxxx",
"appkey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"skuState": "1",
"page": "1",
"pagesize": "5"
}
字段详解:
参数名
|
参数说明
|
必填/不必填
|
loginName
|
传入的登陆账号
|
必填
|
appkey
|
Token
|
必填
|
skuState
|
商品状态
|
必填(0删除 ,1上架,2下架)
|
page
|
页码
|
必填
|
pagesize
|
每页显示数量
|
必填(每页最多200)
|
isMainSku
|
是否只查询主商品
|
不必填 0:否;1:是
|
<!--[if !supportLists]-->1.
<!--[endif]-->返回参数:根据code判断是否成功,msg是失败信息
{
"msg":"商家订单列表查询成功",
"data":[
{"skuName":"智高3D动物彩泥","popSkuCode":"0101011185","itemSkuId":363,"skuStatus":1},
{"skuName":"
乐高创意蓝色手提箱
L10659","popSkuCode":"0101011435","itemSkuId":506,"skuStatus":1},
{"skuName":"乐高创意粉红手提箱
L10660","popSkuCode":"0101011436","itemSkuId":505,"skuStatus":1},
{"skuName":"慧殿堂神奇织毛机","popSkuCode":"0101011925","itemSkuId":326,"skuStatus":1},
{"skuName":"
培乐多趣味学习套装
21018","popSkuCode":"0101012044","itemSkuId":1434,"skuStatus":1}
],
"totalNum":2833,
"success":"
成功",
"errorCode":"205",
"currentPage":"1"
}
错误返回如下:
errorCode
|
msg
|
success
|
206
|
未查到商家信息
|
失败
|
204
|
参数loginName或appkey不能为空
|
失败
|
203
|
获取商家信息失败
|
失败
|
请问这个接口调用实例怎么写呀?调用后又如何把数据存储到本地的table呢?
根据教程中的实例:
Dim hc As New HttpClient("http://ali-deliver.showapi.com/fetchCom?nu=929601675231")
hc.Headers.Add("Authorization","APPCODE " & "7858a126750949e4a36371580f420413")
Dim jo As JObject = Jobject.Parse(hc.GetData)
Output.Show(jo.ToString)
对应起来无从下手啊。
[此贴子已经被作者于2019/4/16 22:38:55编辑过]