参数名称 | 类型 | 必填 | 说明 |
---|
参数名称 | 类型 | 说明 |
---|---|---|
brandid | int | 品牌ID |
name | string | 品牌名称 |
initial | string | 首字母 |
<?php require_once 'curl.func.php'; $appkey = 'your_appkey_here';//你的appkey $url = "https://api.jisuapi.com/parts/brand?appkey=$appkey"; $result = curlOpen($url, ['ssl'=>true]); $jsonarr = json_decode($result, true); //exit(var_dump($jsonarr)); if($jsonarr['status'] != 0) { echo $jsonarr['msg']; exit(); } $result = $jsonarr['result']; ; foreach($result['0'] as $key=>$val) { echo $val['brandid'].' '.$val['name'].' '.$val['initial']; } foreach($result['1'] as $key=>$val) { echo $val['brandid'].' '.$val['name'].' '.$val['initial']; } foreach($result['2'] as $key=>$val) { echo $val['brandid'].' '.$val['name'].' '.$val['initial']; } foreach($result['3'] as $key=>$val) { echo $val['brandid'].' '.$val['name'].' '.$val['initial']; } foreach($result['4'] as $key=>$val) { echo $val['brandid'].' '.$val['name'].' '.$val['initial']; } foreach($result['5'] as $key=>$val) { echo $val['brandid'].' '.$val['name'].' '.$val['initial']; } foreach($result['6'] as $key=>$val) { echo $val['brandid'].' '.$val['name'].' '.$val['initial']; } foreach($result['7'] as $key=>$val) { echo $val['brandid'].' '.$val['name'].' '.$val['initial']; } foreach($result['8'] as $key=>$val) { echo $val['brandid'].' '.$val['name'].' '.$val['initial']; } foreach($result['9'] as $key=>$val) { echo $val['brandid'].' '.$val['name'].' '.$val['initial']; } foreach($result['10'] as $key=>$val) { echo $val['brandid'].' '.$val['name'].' '.$val['initial']; } foreach($result['11'] as $key=>$val) { echo $val['brandid'].' '.$val['name'].' '.$val['initial']; } foreach($result['12'] as $key=>$val) { echo $val['brandid'].' '.$val['name'].' '.$val['initial']; }
{ "status":0, "msg":"ok", "result":[ { "brandid":1, "name":"奥迪", "initial":"A" }, { "brandid":21, "name":"宾利", "initial":"B" }, { "brandid":15, "name":"保时捷", "initial":"B" }, { "brandid":13, "name":"标致", "initial":"B" }, { "brandid":11, "name":"比亚迪", "initial":"B" }, { "brandid":10, "name":"宝马", "initial":"B" }, { "brandid":9, "name":"奔驰", "initial":"B" }, { "brandid":7, "name":"本田", "initial":"B" }, { "brandid":28, "name":"长安汽车", "initial":"C" }, { "brandid":30, "name":"长城", "initial":"C" }, { "brandid":36, "name":"大众", "initial":"D" }, { "brandid":51, "name":"丰田", "initial":"F" }, { "brandid":52, "name":"福特", "initial":"F" } ] }
代号 | 说明 |
---|---|
201 | 零件ID和零件号不能都为空 |
202 | 配件ID错误 |
220 | 没有信息 |
代号 | 说明 |
---|---|
101 | APPKEY为空或不存在 |
102 | APPKEY已过期 |
103 | APPKEY无请求此数据权限 |
104 | 请求超过次数限制 |
105 | IP被禁止 |
106 | IP请求超过限制 |
107 | 接口维护中 |
108 | 接口已停用 |
计次套餐 | 套餐规格 | 价格 | ||
---|---|---|---|---|
免费套餐 | 10次 | 0 元 | ≈0元/次 | |
Level1 | 10000次 | 320 元 | ≈0.032元/次 | |
Level2 | 20000次 | 624 元 | ≈0.0312元/次 | |
Level3 | 50000次 | 1520 元 | ≈0.0304元/次 | |
Level4 | 100000次 | 2760 元 | ≈0.0276元/次 |
© 2015-2024 杭州极速互联科技有限公司 版权所有 浙ICP备17047587号-4 浙公网安备33010502005096 增值电信业务经营许可证:浙B2-20190875