码迷,mamicode.com
首页 > Windows程序 > 详细

百度api获取天气

时间:2014-06-06 11:40:36      阅读:402      评论:0      收藏:0      [点我收藏+]

标签:c   code   a   http   int   get   

<?php

$city="武汉";
$content = file_get_contents("http://api.map.baidu.com/telematics/v3/weather?location=$city&output=json&ak=5slgyqGDENN7Sy7pw29IUvrZ");
print_r(json_decode($content));
?>

百度api获取天气,布布扣,bubuko.com

百度api获取天气

标签:c   code   a   http   int   get   

原文地址:http://www.cnblogs.com/asunzhang/p/3767141.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!