我正在使用 twitter 的 oauth,我遇到了一个奇怪的问题。
如何仅使用他们的令牌和秘密获取用户的个人资料信息?
这是我现在使用的
function OauthGetProfile($consumerkey, $consumersecret, $oauthtoken, $oauthsecret){
$to = new TwitterOAuth($consumerkey, $consumersecret, $oauthtoken, $oauthsecret);
$content = $to->OAuthRequest('http://twitter.com/statuses/user_timeline.xml', array('count' => '50'), 'GET');
return $content;
}
我不确定如何获取此信息,获取您的个人资料的 api 调用要求您指定人员个人资料,我需要他们的 ID 来执行此操作。