/goods/express(获取快递公司列表)
请求地址:
| 示例地址 | 描述 |
| https://{xxx.com}/goods/express | 地址中的xxx.com为示例,请在会员中心的 资料设置 中查看ApiHost。 |
公共请求参数:
| 名称 | 类型 | 必须 | 描述 |
请求参数:
| 名称 | 类型 | 必须 | 描述 |
响应参数:
{
"code": 200,
"msg": "success",
"data": {
"success": true,
// 快递公司列表
"list": [
{
"kdid": 101, // 快递ID
"name": "圆通快递", // 快递名称
"icon": "/icon/yuan_tong.png", // 快递图标
"status": 1 // 1.上架中 0.已下架
},
]
}
}
PHP示例代码:
function test_api(){
$url = 'http://xxx.xx.com/goods/express';
$post = [];
$resp = self::sendPost( $url, $post, 'POST', [] );
return json($resp);
}