<?
	define("APPKEY","");
	define("WEIBOUSERNAME","");
	define("WEIBOPASSWORD","");
	define("TRENDNAME","易试买");
	ini_set('default_charset','utf-8');
	$ci = curl_init();
	curl_setopt($ci, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
	curl_setopt($ci, CURLOPT_URL, "http://api.t.sina.com.cn/trends/statuses.json?source=".APPKEY );
	curl_setopt($ci, CURLOPT_USERPWD, WEIBOUSERNAME.":".WEIBOPASSWORD);
	curl_setopt($ch,CURLOPT_POST,1);
	curl_setopt($ci, CURLOPT_POSTFIELDS, "trend_name=".TRENDNAME);
	$response = curl_exec($ci);
	curl_close ($ci);
	print_r($response);
?>

相关文章:

  • 2022-12-23
  • 2021-11-17
  • 2021-07-20
  • 2022-12-23
  • 2021-05-23
  • 2022-12-23
  • 2022-01-26
  • 2021-12-24
猜你喜欢
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-01-19
  • 2021-09-30
相关资源
相似解决方案