Skip to content

Commit

Permalink
test.php
Browse files Browse the repository at this point in the history
  • Loading branch information
li.pengfei committed Oct 10, 2012
0 parents commit e6e049c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
//var_dump(json_decode('a',true));

/**
* 测试新浪微博接口
*
*/
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_URL,"https://api.weibo.com/2/statuses/public_timeline.json?access_token=2.00KonpnB4UIk9Ef8084faeablqPSlB");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$result = curl_exec ($ch);
curl_close ($ch);
var_dump($result);

0 comments on commit e6e049c

Please sign in to comment.