接口地址: https://登录后显示/api/173/330(支持:http/https)
返回格式:json,xml,jsonp调用
请求方式:GET,POST
POST 请求需要设置Header头:Content-Type: application/x-www-form-urlencoded;charset=utf-8
Api测试工具请求说明:
名称 | 必填 | 类型 | 说明 | 示例 参数另存 |
---|---|---|---|---|
appid | 是 | String | 应用ID,在后台我的应用查看或者添加 | |
format | 否 | String | 返回数据格式类型,每个接口已经说明支持返回格式:json,xml, jsonp调用方法说明 | |
sign | 是 | String | 1.使用Md5方式验证,参数按一定规则md5后返回的字符串,详情点击这里阅读 2.使用Hash验证方式,直接跟上密钥即可。如何设置hash验证 通过我的应用里面修改验证方式 |
|
year_city | 是 | String | 唯一键值,用于区别各届奥运会。接口调用中会用到 |
Md5验证方式-加密顺序
返回参数说明:
名称 | 必填 | 类型 | 说明 | 示例 参数另存 |
---|---|---|---|---|
codeid | 否 | Integer | 状态码,返回10000状态都会进行计费。具体说明可查看状态码说明 | 10000 |
country | 否 | String | 国家或地区 | 德国 |
country_code | 否 | String | 国家代码 | DE |
country_logo | 否 | String | 国家或地区图标 | /s1/f_auto/t_s_pog_flag_x2/static/flag/4x3/DE |
curtime | 否 | String | 当前服务器时间戳 | 1645260058 |
message | 否 | String | 请求状态说明 | 操作成功! |
olympic_bronze | 否 | Integer | 铜牌数量 | 14 |
olympic_gold | 否 | Integer | 金牌数量 | 16 |
olympic_silver | 否 | Integer | 银牌数量 | 11 |
retdata | 否 | Array | 回数据集合,可能是数据、对象或者字符串 |
JSON返回示例: