-
-
名称 |
类型 |
必须 |
描述 |
$app |
String |
否 |
应用的app_key |
$method |
String |
是 |
API接口名称 |
$sign |
String |
是 |
签名 |
$token |
String |
是 |
采用OAuth授权方式为必填参数 |
$v |
String |
是 |
API协议版本,可选值:1.0.0 |
-
名称 |
类型 |
必须 |
示例值 |
描述 |
parentId |
Number |
是
|
|
市id |
pageNo |
Integer |
是
|
|
页码 |
pageSize |
Integer |
是
|
|
每页条数 |
-
Java
GmosClient client = new DefaultGmosClient(url, appKey, secret, token);
GomeLogisticsCountyGetRequest request = new GomeLogisticsCountyGetRequest();
request.setParentId();
request.setPageNo();
request.setPageSize();
GomeLogisticsCountyGetResponse response = client.execute(request);
System.out.println(response.getBody());
PHP
require_once('GmosSdk.php');
$client = new GmosClient;
$client -> appkey = "";
$client -> secretKey = "";
$client -> session = "";
$client -> gatewayUrl = "";
$request = new GomeLogisticsCountyGetRequest;
$request -> setParentId();
$request -> setPageNo();
$request -> setPageSize();
$response = $client -> execute($request);
Net
IGmosClient client = new DefaultGmosClient(url, appKey, secret, token);
GomeLogisticsCountyGetRequest request = new GomeLogisticsCountyGetRequest();
request.ParentId=;
request.PageNo=;
request.PageSize=;
GomeLogisticsCountyGetResponse response = client.Execute(request);
-
名称 |
类型 |
示例值 |
描述 |
result | AreaVOPageObject | | |
resultAreaVOs | AreaVO[] | - | |
provinceId | String | - | 省id |
provinceName | String | - | 省名称 |
cityId | String | - | 市id |
cityName | String | - | 市名称 |
areaId | String | - | 区县id |
areaName | String | - | 区县名称 |
detailAddress | String | - | 详细地址 |
addressCode | String | - | 地址代码 |
shopId | String | - | 店铺编码 |
addressShortName | String | - | 地址简称 |
postCode | String | - | 邮政编码 |
contactName | String | - | 联系人 |
tel | String | - | 联系电话 |
isDefault | String | - | 是否默认 y/n |
isUsed | String | - | 是否在用 y/n |
corpName | String | - | 店铺公司名称 |
totalCount | int | - | |
注:名称栏的缩进表示类型的关联,单击可以隐藏当前类型包含的字段
-
JSON
{
"gome_logistics_county_get_response": {
"result": {
"resultAreaVOs": [
{
"provinceId": "-",
"provinceName": "-",
"cityId": "-",
"cityName": "-",
"areaId": "-",
"areaName": "-",
"detailAddress": "-",
"addressCode": "-",
"shopId": "-",
"addressShortName": "-",
"postCode": "-",
"contactName": "-",
"tel": "-",
"isDefault": "-",
"isUsed": "-",
"corpName": "-"
},
"..."
],
"totalCount": "-"
}
}
}
-
-
错误码 |
错误消息 |
10001 |
系统错误 |
10002 |
方法调用次数超限 |
10003 |
当前版本的方法不存在,请检查 |
10004 |
缺少版本参数,请指定服务方法的版本号 |
10005 |
该应用在当前IP下禁止访问 |
8224 |
缺少签名参数,请添加签名请求参数 |
8999 |
存在重复的请求,请在90秒之后再请求第二次 |
8225 |
签名无效,请按正确的算法对请求数据进行签名 |
9000 |
字段%s不能为空 |
8249 |
超过上传限制 |
8223 |
无效的appKey,请使用合法的appKey(由服务提供商授予你) |
8239 |
需要传递accessToken参数 |
8222 |
缺少appKey,请向服务端获取合法的appKey |
20001 |
令牌已过期 |
-