-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API calls with no authentication #12
Comments
That's correct. Just like performing a search, you should have to authenticate. I'm also getting an exception. |
It looks like it's making the right call too. $feed = $this->tweet->call('get', 'users/show', array('screen_name' => 'amboy00')); $url will be http://api.twitter.com/users/show.json?screen_name=amboy00 which works. $feed will come back bool(false) |
I dont know if this will work for you, but I hardcoded an exception in tweet.php. protected function _httpRequest($method = null, $url = null, $params = null)
{
if( empty($method) || empty($url) ) return FALSE;
if ( empty($params['oauth_signature']) ) $params = $this->_prepareParameters($method, $url, $params);
//ADD THIS EXCEPTION
if ( $url == 'http://api.twitter.com/users/show.json' )
{
$params['oauth'] = null;
} |
amboy00, thanks for this! works perfect. |
From what I undertand, some API calls like users/show and statuses/user_timeline do not require authentication. So how do I make these calls using Elliot's Twtter library without authenticating?
For example when I try to do this (before authenticating) an exception will be thrown.
$user = $this->tweet->call('get', 'users/show', array('screen_name' => 'somescreenname'));
Sorry if this is a dumb question.
The text was updated successfully, but these errors were encountered: