Hi,
I have read all the users/lookup related posts and also scoured the
internet looking for an appropriate example.I posted a question as a
reply on one but don't see it so I am hoping someone can help a
twitter api newbie.

I just want to get results from users/lookup. I am using Abraham's
Oauth library, which I have been able to get to work in other
instances with no problems. I'm hoping it's my lack of understanding
of how the syntax should be. Here is the code:

  // all values populated correctly
  $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
$OAuthKey, $OAuthSecret);
  // saw this example as correction of the following line; neither
seems to work
  $userDeets = $connection->get('/users/lookup.json',
array('screen_name' => 'biz,twitterapi'));
 // $userDeets = $connection->get('/users/lookup.json?
screen_name=biz,twitterapi');

  foreach ($userDeets as $item)
    {
      echo $item->followers_count;
      echo "<br>";
    }

Thanks in advance for any insight.

-Gabe

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to