HTTP错误500:Twitter API OAuth

时间:2017-03-05 17:13:30

标签: apache twitter server twitter-oauth

我正在尝试使用OAuth连接到Twitter API,但我继续获取"localhost is currently unable to handle this request" HTTP ERROR 500。这是我的代码:

<?php
require "twitteroauth/autoload.php";

use Abraham\TwitterOAuth\TwitterOAuth;

$consumer_key = "";       //left blank here intentionally.
$consumer_secret = "";
$access_token = "";
$access_token_secret = "";

$connection = new TwitterOAuth($consumer_key, $consumer_secret, $access_token, $access_token_secret);
$content = $connection->get("account/verify_credentials");
print_r($content);
?>

可能是什么问题?

0 个答案:

没有答案