UC天气预报接口 测试
2015-07-03 12:03
495 查看
北京天气:
http://wea.uc.cn/v2/swa_weather.php?uc_param_str=&ni=&ei=&dn=&ss=320x416&ve=10.4.0.542&bi=997&pf=44&cp=&city=%E5%8C%97%E4%BA%AC&v=1&vcode=4d4c702b51e22a96
参数city直接填城市名称,vcode参数必须要有。
返回结果:
天津天气:
http://wea.uc.cn/v2/swa_weather.php?uc_param_str=&ni=&ei=&dn=&ss=320x416&ve=10.4.0.542&bi=997&pf=44&cp=&city=%E5%A4%A9%E6%B4%A5&v=1&vcode=77e2565573db88a2
http://wea.uc.cn/v2/swa_weather.php?uc_param_str=&ni=&ei=&dn=&ss=320x416&ve=10.4.0.542&bi=997&pf=44&cp=&city=%E5%8C%97%E4%BA%AC&v=1&vcode=4d4c702b51e22a96
参数city直接填城市名称,vcode参数必须要有。
返回结果:
{ "code": 200, "msg": "ok", "data": { "cid": "101010100", "city": "北京", "date": "07月03日", "week": "星期五", "weather": "00", "desc": "晴", "temper": "27", "humidity": "34", "wind_power": "2", "wind_dir": "南风", "pm25": "15", "aqi_value": "37", "aqi": "空气质量优", "aqi_url": "http://m.mypm25.com/pm/beijing.html", "u_time": "11:40", "huafeng_url1": "http://uc.weather.com.cn/mzs/101010100.shtml?flag=ct", "huafeng_url2": "http://uc.weather.com.cn/mweather/101010100.shtml", "huafeng_url3": "http://uc.weather.com.cn/mweather1d/101010100.shtml", "forecast": [ { "date": "07月03日", "week": "星期五", "weather": "00", "desc": "晴", "forecast_time": "2015-07-03 08:00:00", "wind_power": "小于3级", "wind_dir": "", "high_temper": "33", "low_temper": "20" }, { "date": "07月04日", "week": "星期六", "weather": "02", "desc": "阴", "forecast_time": "2015-07-03 08:00:00", "wind_power": "小于3级", "wind_dir": "", "high_temper": "30", "low_temper": "21" }, { "date": "07月05日", "week": "星期天", "weather": "02", "desc": "阴", "forecast_time": "2015-07-03 08:00:00", "wind_power": "小于3级", "wind_dir": "", "high_temper": "30", "low_temper": "21" }, { "date": "07月06日", "week": "星期一", "weather": "04", "desc": "雷阵雨", "forecast_time": "2015-07-03 08:00:00", "wind_power": "小于3级", "wind_dir": "", "high_temper": "31", "low_temper": "22" }, { "date": "07月07日", "week": "星期二", "weather": "02", "desc": "阴", "forecast_time": "2015-07-03 08:00:00", "wind_power": "小于3级", "wind_dir": "", "high_temper": "31", "low_temper": "23" }, { "date": "07月08日", "week": "星期三", "weather": "01", "desc": "多云", "forecast_time": "2015-07-03 08:00:00", "wind_power": "小于3级", "wind_dir": "", "high_temper": "33", "low_temper": "23" } ] } }
天津天气:
http://wea.uc.cn/v2/swa_weather.php?uc_param_str=&ni=&ei=&dn=&ss=320x416&ve=10.4.0.542&bi=997&pf=44&cp=&city=%E5%A4%A9%E6%B4%A5&v=1&vcode=77e2565573db88a2
相关文章推荐
- 关于WebView的loaddata方法中文乱码问题解决,记录而已。
- C++ 字典排序 原理与实现
- Spring Java-based容器配置(二)
- leetcode 24: Swap Nodes in Pairs
- java设计模式思想
- tableView下拉图片放大
- Android Fragment 真正彻底的解决(下一个)
- 跨域请求数据解决方案整理
- Visual Studio中修改项目的输出目录
- leetcode 23: Merge k Sorted Lists
- 【RAC】 RAC For W2K8R2 安装--卸载(八)
- tomcat8项目引入servlet-api.jar包后报错
- Objective-C 之 NSNotificationCenter vs delegate vs KVO
- informatica 在抽取EXCEL中遇到问题及INFA售后给出的建议
- iOS 笔试题
- 监听网络状态
- NSRange,判断字符串的各种操作~
- HDU 4508 沼泽湿地系列故事——记住减肥I (2013腾讯编程马拉松预赛第一)
- MySQL 求时间差
- leetcode 22: Generate Parentheses