- 一个会员资源包即可调用【所有会员接口】
- 注册即免费送会员包(流量次数限制)
- if (会员包到期 or 次数用完 or 流量用完) then 会员包失效 end
- 可购买多个资源包,会自动递延生效串联使用
1
让网络数据像水、电一样, 使用容易、自由和便宜
已为3000多家企业提供API服务
非文件上传的POST时,请设置headers['Content-Type'] = 'application/x-www-form-urlencoded',
并把对象形式的数据转成查询字符串
文件上传的POST时,请设置headers['Content-Type'] = 'multipart/form-data'
参数名称 | 类型 | 示例值 | 必须 | 描述 |
---|---|---|---|---|
showapi_appid | String | 100 | 是 | 易源应用id |
showapi_sign | String | 698d51a19d8a121ce581499d7b701668 | 是 | 为了验证用户身份,以及确保参数不被中间人篡改,需要传递调用者的数字签名。 可选【简单密钥方式】,在url后带上showapi_appid和showapi_sign即可 |
showapi_timestamp | String | 20141114142239 | 否 | 客户端时间。
格式yyyyMMddHHmmss,如20141114142239 为了在一定程度上防止“重放攻击”,平台只接受在10分钟之内的请求。如果不传或传空串,则系统不再做此字段的检测。 |
showapi_res_gzip | String | 1或0 | 否 | 返回值是否用gzip方式压缩。此值为1时将压缩,其他值不压缩。 |
... |
参数名称 | 类型 | 默认值 | 示例值 | 必须 | 描述 |
---|---|---|---|---|---|
page | String | 1 |
1
|
否 |
第几页。
|
maxResult | String | 20 |
20
|
否 |
每页最大记录数。其值为1至50
|
以JSON格式返回结果。
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
showapi_res_body | String | {"city":"昆明","prov":"云南"} | 消息体的JSON封装,所有应用级的返回参数将嵌入此对象 。 |
showapi_res_code | int | 0 |
易源返回标志,0为成功,其他为失败。
0成功 -1,系统调用错误 -2,可调用次数或金额为0 -3,读取超时 -4,服务端返回数据解析错误 -5,后端服务器DNS解析错误 -6,服务不存在或未上线 -7, API创建者的网关资源不足 -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受限 -1014,token权限无效 |
showapi_res_error | String | 用户输入有误! | 错误信息的展示 |
showapi_res_id | String | ce135f6739294c63be0c021b76b6fbff | 本次请求id |
... |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
allNum | String |
345
|
所有记录数
|
allPages | String |
34
|
所有页数。每页20条。
|
contentlist | Object[] |
|
笑话条目内容
|
- title | String |
吃了一百年的玉米
|
笑话标题
|
- text | String |
|
笑话正文
|
- ct | String |
2015-07-10 05:54:00.000
|
生成时间
|
- type | Number |
1
|
1为文本,2为图片,3为动态图
|
- id | String |
|
每条笑话的id
|
currentPage | String |
1
|
当前第几页
|
maxResult | String |
20
|
每页最多显示几条
|
ret_code | String |
0
|
0为成功,其他失败
|
... |
{
"showapi_res_code": 0,
"showapi_res_error": "",
"showapi_res_id":"ce135f6739294c63be0c021b76b6fbff",
"showapi_res_body": {
"allNum": 2903,
"allPages": 146,
"contentlist": [
{
"ct": "2015-07-30 01:10:29.995",
"img": "http://img5.hao123.com/data/3_2ec986ed8d235ebb3bd562ed5b782eb6_0",
"title": "起来!就不~~~",
"type": 2
}
],
"currentPage": 1,
"maxResult": 20
}
}
用户名: showapi
电话: 4009988033
微博: http://www.weibo.com/showapi
邮箱:
QQ: 3007663665
微信: show_api (公众号)