天气api

作者: 程序猿吴彦祖 | 来源:发表于2017-06-23 18:51 被阅读0次

    JSON
    http://wthrcdn.etouch.cn/weather_mini?city=北京
    通过城市名字获得天气数据,json数据
    http://wthrcdn.etouch.cn/weather_mini?citykey=101010100
    通过城市id获得天气数据,json数据

    XML类型
    http://wthrcdn.etouch.cn/WeatherApi?citykey=101010100
    通过城市id获得天气数据,xml文件数据,
    当错误时会有<error>节点
    http://wthrcdn.etouch.cn/WeatherApi?city=北京
    通过城市名字获得天气数据,xml文件数据

    原文地址http://blog.csdn.net/wyb112233/article/details/49535049

    相关文章

      网友评论

          本文标题:天气api

          本文链接:https://www.haomeiwen.com/subject/xtzccxtx.html