价格: ¥ 99 积分可抵¥ 1
最后更新: 2019-12-15 20:55:18
演示地址: 无
安装费: 免费
调用地址:http://apifreelat.market.alicloudapi.com/whapi/json/aliweather/briefforecast3days
请求方式:POST
返回类型:JSON
API 调用:API 简单身份认证调用方法(APPCODE)展开API 签名认证调用方法(AppKey & AppSecret)
调试工具:去调试
无参数
无参数
名称 | 类型 | 是否必须 | 描述 |
---|---|---|---|
lat | STRING | 必选 | 纬度 |
lon | STRING | 必选 | 经度 |
token | STRING | 可选 | 请求token(默认参数,必填) |
curl -i -X POST 'http://apifreelat.market.alicloudapi.com/whapi/json/aliweather/briefforecast3days' -H 'Authorization:APPCODE 你自己的AppCode' --data 'lat=39.91488908&lon=116.40387397&token=443847fa1ffd4e69d929807d42c2db1b'
{
"code": 0,
"data": {
"city": {
"cityId": 284609,
"counname": "中国",
"name": "东城区",
"pname": "北京市"
},
"forecast": [
{
"conditionDay": "多云",
"conditionIdDay": "1",
"conditionIdNight": "31",
"conditionNight": "多云",
"predictDate": "2016-09-01",
"tempDay": "27",
"tempNight": "18",
"updatetime": "2016-09-01 09:07:08",
"windDirDay": "西北风",
"windDirNight": "西北风",
"windLevelDay": "3",
"windLevelNight": "2"
},
{
"conditionDay": "多云",
"conditionIdDay": "1",
"conditionIdNight": "31",
"conditionNight": "多云",
"predictDate": "2016-09-02",
"tempDay": "27",
"tempNight": "20",
"updatetime": "2016-09-01 09:07:08",
"windDirDay": "北风",
"windDirNight": "东南风",
"windLevelDay": "2",
"windLevelNight": "1"
},
{
"conditionDay": "多云",
"conditionIdDay": "1",
"conditionIdNight": "31",
"conditionNight": "多云",
"predictDate": "2016-09-03",
"tempDay": "28",
"tempNight": "20",
"updatetime": "2016-09-01 09:07:08",
"windDirDay": "南风",
"windDirNight": "东风",
"windLevelDay": "2",
"windLevelNight": "2"
}
]
},
"msg": "success",
"rc": {
"c": 0,
"p": "success"
}
}
无数据
无数据
0 (0%) 好评 | 0 (0%) 中评 | 0 (0%) 差评 |