接口说明/ API Explain
可查询微信分类的最新精选文章,以及微信权威、高流量的公众号。
非文件上传的POST时,enctype=application/x-www-form-urlencoded。
文件上传的POST时,enctype=multipart/form-data。
参数名称 | 类型 | 示例值 | 必须 | 描述 |
---|---|---|---|---|
showapi_appid | String | 100 | 是 | 易源应用id |
showapi_sign | String | 698d51a19d8a121ce581499d7b701668 | 是 | 为了验证用户身份,以及确保参数不被中间人篡改,需要传递调用者的数字签名。 |
showapi_timestamp | String | 20141114142239 | 否 | 客户端时间。
格式yyyyMMddHHmmss,如20141114142239 为了在一定程度上防止“重放攻击”,平台只接受在10分钟之内的请求。如果不传或传空串,则系统不再做此字段的检测。 |
showapi_res_gzip | String | 1或0 | 否 | 返回值是否用gzip方式压缩。此值为1时将压缩,其他值不压缩。 |
... |
参数名称 | 类型 | 默认值 | 示例值 | 必须 | 描述 |
---|---|---|---|---|---|
typeId | String | 否 |
文章分类id
|
||
key | String | 否 |
关键词
|
||
page | String | 1 | 否 |
第几页,每页只能显示20条
|
|
... |
以JSON格式返回结果。
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
showapi_res_body | String | {"city":"昆明","prov":"云南"} | 消息体的JSON封装,所有应用级的返回参数将嵌入此对象 。 |
showapi_res_code | int | 0 |
易源返回标志,0为成功,其他为失败。
0成功 -1,系统调用错误 -2,可调用次数或金额为0 -3,读取超时 -4,服务端返回数据解析错误 -5,后端服务器DNS解析错误 -6,服务不存在或未上线 -1000,系统维护 -1002,showapi_appid字段必传 -1003,showapi_sign字段必传 -1004,签名sign验证有误 -1005,showapi_timestamp无效 -1006,app无权限调用接口 -1007,没有订购套餐 -1008,服务商关闭对您的调用权限 -1009,调用频率受限 -1010,找不到您的应用 -1011,子授权app_child_id无效 -1012,子授权已过期或失效 -1013,子授权ip受限 |
showapi_res_error | String | 用户输入有误! | 错误信息的展示 |
showapi_res_id | String | ce135f6739294c63be0c021b76b6fbff | 本次请求id |
... |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
pagebean | PageBean |
分页对象
|
|
- contentlist | ArticlItem |
微信精选条目
|
|
-- id | String |
55c3b1096e36e0e8c3953012
|
条目id
|
-- title | String |
纽约梦丨欲求翻
|
条目标题
|
-- typeId | String |
19
|
类型id
|
-- typeName | String |
体育迷
|
类型名称
|
-- url | String |
http://mp.weixin.qq.com/
|
微信文章链接
|
-- contentImg | String |
http://mmbiz.qpic.cn
|
正文图片示例
|
-- userLogo | String |
http://app1.showapi.com/11.jpg
|
微信作者头像
|
-- username | String |
篮球先锋报
|
微信作者名称
|
-- userLogo_code | String |
http://app1.showapi.com/11.jpg
|
微信作者二维码
|
-- read_num | Number |
5489
|
阅读人数
|
-- like_num | Number |
355
|
点赞人数
|
-- content | String |
此文章正文。只有在【微信正文和评论抽取】接入点才会返回此字段。
|
|
-- date | String |
此条文章发布时间
|
|
-- ct | String |
此条文章入库时间
|
|
- maxResult | String |
每页最大数量
|
|
- allNum | String |
所有数量
|
|
- allPages | String |
所有页
|
|
- currentPage | String |
当前页
|
|
ret_code | String |
0
|
0为成功,其他失败
|
... |
{
"showapi_res_code": 0,
"showapi_res_error": "",
"showapi_res_body": {
"pagebean": {
"allNum": 5961,
"allPages": 299,
"contentlist": [
{
"contentImg": "http://mmbiz.qpic.cn/mmbiz/e5DwVY6II2ZdcrTjryOw0ibOOTEh7nXI88VxM9m9pzia8pEVEzicUfibL7aGUcdQ2AXb8ahO90icqAiaqiczCiahE4Gzbg/0?wx_fmt=jpeg",
"date": "08月06日",
"id": "55c3b1096e36e0e8c3953012",
"title": "纽约梦丨欲求翻身,任重道远",
"typeId": "19",
"typeName": "体育迷",
"url": "http://mp.weixin.qq.com/s?__biz=MzA3MTgyNjcxMA==&mid=211970632&idx=1&sn=cbc03c2911bbf981f455dd161526029c&3rd=MzA3MDU4NTYzMw==&scene=6#rd",
"userLogo": "http://app1.showapi.com/weixin_info/287c5d08-0a52-4001-8e0c-8ed1222fa44d.jpg",
"userLogo_code": "http://app1.showapi.com/weixin_info/0327beff-34d8-49d4-9dcc-cdbba069c730.jpg",
"userName": "篮球先锋报"
}
],
"currentPage": 1,
"maxResult": 20
},
"ret_code": 0
}
}