0
我有以下代碼:Zend公司的Twitter:連接
$twitter = new Zend_Service_Twitter(array('username' => $this->site->twitter_username, 'accessToken' => $this->site->twitter_password));
$response = $twitter->account->verifyCredentials();
print_r($response);
$twitter->account->endSession();
我的用戶名是我的登錄用戶名在Twitter上,我的$這個 - >定點> twitter_password是我的訪問令牌(組oauth_token)
然而,我得到:
Zend_Rest_Client_Result Object ([_sxml:protected] => SimpleXMLElement Object ([request] => /account/verify_credentials.xml [error] => Could not authenticate you.) [_errstr:protected] =>)
我不確定哪裏出錯了,有什麼想法?