一区二区久久-一区二区三区www-一区二区三区久久-一区二区三区久久精品-麻豆国产一区二区在线观看-麻豆国产视频

php使用百度天氣接口示例

注意地區(qū)要轉(zhuǎn)碼的
百度ak申請地址:http://lbsyun.baidu.com/apiconsole/key

復(fù)制代碼 代碼如下:
<?php

$city="嘉興";
$content = file_get_contents("http://api.map.baidu.com/telematics/v3/weather?location=%E5%98%89%E5%85%B4&output=json&ak=5slgyqGDENN7Sy7pw29IUvrZ");
print_r(json_decode($content));

復(fù)制代碼 代碼如下:
{
    error: 0,
    status: "success",
    date: "2014-04-18",
    results: [
        {
            currentCity: "嘉興",
            weather_data: [
                {
                    date: "今天(周三)",
                    dayPictureUrl: "http://api.map.baidu.com/images/weather/day/duoyun.png",
                    nightPictureUrl: "http://api.map.baidu.com/images/weather/night/duoyun.png",
                    weather: "多云",
                    wind: "微風(fēng)",
                    temperature: "23℃"
                },
                {
                    date: "明天(周四)",
                    dayPictureUrl: "http://api.map.baidu.com/images/weather/day/leizhenyu.png",
                    nightPictureUrl: "http://api.map.baidu.com/images/weather/night/zhongyu.png",
                    weather: "雷陣雨轉(zhuǎn)中雨",
                    wind: "微風(fēng)",
                    temperature: "29~22℃"
                },
                {
                    date: "后天(周五)",
                    dayPictureUrl: "http://api.map.baidu.com/images/weather/day/yin.png",
                    nightPictureUrl: "http://api.map.baidu.com/images/weather/night/duoyun.png",
                    weather: "陰轉(zhuǎn)多云",
                    wind: "微風(fēng)",
                    temperature: "31~23℃"
                },
                {
                    date: "大后天(周六)",
                    dayPictureUrl: "http://api.map.baidu.com/images/weather/day/duoyun.png",
                    nightPictureUrl: "http://api.map.baidu.com/images/weather/night/duoyun.png",
                    weather: "多云",
                    wind: "微風(fēng)",
                    temperature: "31~24℃"
                }
            ]
        },
        {
            currentCity: "合肥市",
            weather_data: [
                {
                    date: "今天(周三)",
                    dayPictureUrl: "http://api.map.baidu.com/images/weather/day/duoyun.png",
                    nightPictureUrl: "http://api.map.baidu.com/images/weather/night/duoyun.png",
                    weather: "多云",
                    wind: "東風(fēng)3-4級",
                    temperature: "27℃"
                },
                {
                    date: "明天(周四)",
                    dayPictureUrl: "http://api.map.baidu.com/images/weather/day/duoyun.png",
                    nightPictureUrl: "http://api.map.baidu.com/images/weather/night/duoyun.png",
                    weather: "多云",
                    wind: "東北風(fēng)3-4級",
                    temperature: "35~27℃"
                },
                {
                    date: "后天(周五)",
                    dayPictureUrl: "http://api.map.baidu.com/images/weather/day/duoyun.png",
                    nightPictureUrl: "http://api.map.baidu.com/images/weather/night/duoyun.png",
                    weather: "多云",
                    wind: "南風(fēng)",
                    temperature: "35~27℃"
                },
                {
                    date: "大后天(周六)",
                    dayPictureUrl: "http://api.map.baidu.com/images/weather/day/duoyun.png",
                    nightPictureUrl: "http://api.map.baidu.com/images/weather/night/duoyun.png",
                    weather: "多云",
                    wind: "東風(fēng)",
                    temperature: "34~27℃"
                }
            ]
        }
    ]
}

php技術(shù)php使用百度天氣接口示例,轉(zhuǎn)載需保留來源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請第一時間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 国产美女免费 | 中文字幕天天躁日日躁狠狠躁97 | 久久久久激情免费观看 | 免费观看成人欧美1314www | 青草国产视频 | 思思99精品国产自在现线 | 久久中文网中文字幕 | 一本一本久久a久久综合精品蜜桃 | 精品美女视频在线观看2023 | 午夜免费视频观看 | 手机在线黄色 | 欧美一级做一a做片性视频 欧美一级做一级做片性十三 | 激情影院成人区免费观看视频 | 在线高清免费爱做网 | 日本精品久久久久中文字幕8 | 狠狠狠狠狠干 | 午夜国产情侣拍视频 | 综合网久久 | 亚洲图片激情 | 国产91高清 | 深爱五月激情五月 | 99pao在线视频成精品 | 国产女人成人精品视频 | 日本加勒比在线视频 | 亚洲欧美日韩国产一区二区精品 | 99精品国产第一福利网站 | 亚洲国产精品综合久久一线 | 色妞精品一区二区 | 岛国午夜视频 | 国内精品福利在线视频 | 好吊逼| 69女poren60 | 精品一区二区三区四区乱码 | www.欧美激情 | 国产精品黄大片观看 | 国产成人精品自拍 | 色网在线免费观看 | 国产精品2019 | 国产一二三四2022精字窝 | 国产成+人+亚洲+欧美+日韩 | 91精品国产高清 |