Hello,
Can someone confirmt that this is not a bug?
The following code was working fine until ZF 1.8.3
$twitter = new Zend_Service_Twitter('username', 'password');
$response = $twitter->account->verifyCredentials();
In ZF > 1.10.x will generate an error
Catchable fatal error: Argument 1 passed to
Zend_Service_Twitter::__construct() must be an array, string given, called
in /XController on line 363 and defined in
....library/Zend/Service/Twitter.php on line 131
Chanching it to:
$twitter = new Zend_Service_Twitter(array('username' =>
'username', 'password' => 'password'));
$response = $twitter->account->verifyCredentials();
The following error comes up:
Exception information:
Message: Twitter session is unauthorised. You need to initialize
Zend_Service_Twitter with an OAuth Access Token or use its OAuth
functionality to obtain an Access Token before attempting any API actions
that require authorisation
I do not need a Twitter Oauth Session. What happened to the old Service
Call? Can some one confirm this is a bug or some missunderstanding on my
part?
I also found this other post by someone else having the same problem:
http://forums.zend.com/viewtopic.php?f=69&p=24335
Rgds
Armand