商机挖掘
{{item.ModuleName}}
名称 | 类型 | 必填 | 默认值 | 说明 |
---|---|---|---|---|
ResourcePlatformName | string | 是 |
|
|
RankingListName | string | 否 |
|
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
errcode | string | 返回的错误代码 | |
errmsg | string | 返回的错误说明 | |
UpdateTime | string | 更新时间 | |
Title | string | 标题 | |
Note | string | 热度 | |
RankingListName | string | 热榜榜单 | |
ResourcePlatformName | string | 平台名称 | |
CoverImage | string | 缩略图 | |
Intro | string | 简介 |
{ "errcode": "0", "errmsg": "", "data": { "UpdateTime": "2022-10-14T14:09:56.3266667", "New": [ { "Title": "党的十九大以来大事记", "Note": "234.0万", "RankingListName": "实时热点", "ResourcePlatformName": "XXX", "CoverImage": "", "Intro": "" }, { "Title": "遗忘15年股票找回后1万变50万", "Note": "193.4万", "RankingListName": "实时热点", "ResourcePlatformName": "XXX", "CoverImage": "", "Intro": "" }, ... ] } }
错误码 | 说明 |
---|---|
100101 | 调用次数不够,请充值 |
100102 | 服务每秒调用量超限 |
100103 | 服务每小时调用量超限 |
100104 | 服务每天调用量超限 |
100111 | 调用字数不够,请充值 |
100201 | url无法解析 |
100202 | 请求缺少apikey |
100203 | 无效的apikey |
100204 | api不存在 |
100205 | api已经关闭 |
100206 | 后端服务响应status非200 |
100207 | 后端服务未正确接入 |
100208 | 请求方式不支持 |
100301 | Api商城 内部错误 |
100302 | 请求后端服务过程中错误 |
100303 | 系统繁忙稍候再试 |
100403 | 您输入的apikey不正确 |
错误码 | 说明 |
---|---|
200107 | 服务器超时 |
200110 | 操作异常提示 |
200201 | 传进参数为空 |
200202 | 用户ID为空 |
200505 | 出现异常情况 |
2004020 | 请输入正确的平台名或热榜名称 |
2 | 002 | 01 |
---|---|---|
服务器错误(1:为系统级别错误) | 服务模块代码(即数据ID) | 具体错误代码 |
名称 | 价格 | 次数 | 说明 |
---|---|---|---|
首次试用套餐 | 0.00 | 100 | |
套餐一 | 400.00 | 10000 | |
套餐二 | 3000.00 | 100000 | |
套餐三 | 20000.00 | 1000000 |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://apis.5118.com/hotlist',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => 'ResourcePlatformName=ResourcePlatformName&RankingListName=RankingListName',
CURLOPT_HTTPHEADER => array(
'Authorization: 你要调用API的apikey,到 https://account.5118.com/signin/myapi 获取',
'Content-Type: application/x-www-form-urlencoded',
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;