YY天气使用
前言:
需要使用http获取天气数据,本节说明调用YY天气的http接口获取天气数据
注册:
登录注册的邮箱验证
验证完成以后:
获取的数据信息:
{"code":1,"msg":"Sucess","counts":19996,"data":{"cityId":"CH010100","cityName":"\u5317\u4eac","lastUpdate":"2019-10-15 20:54:33","tq":"\u591a\u4e91","numtq":"01","qw":"10","numfl":"0","fl":"\u5fae\u98ce","fx":"\u5357\u98ce","numfx":"4","sd":"48"}}
\u5317\u4eac 为Unicode编码 代表:北京
如果想了解编码可参考这一节: https://www.cnblogs.com/yangfengwu/p/10274289.html
数据说明:
获取其它城市天气状况:
其它: