[twitter-dev] Re: users/lookup.json

2011-04-12 Thread Gabe
If anyone can help me I would SO appreciate. I have successfully used
Abraham's Twitter Oauth in the past, yet I am relatively new to
Twitter API programming. I am trying to use users/lookup and
understand that it has to be authenticated. I am not getting results
and I have searched for clear examples but haven't found any,

I think it is partly because I don't understand how to use the syntax.
(That's why I like examples.) Anyway the code is here:

 $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
$OAuthKey, $OAuthSecret);
  // saw this example somewhere
  $userDeets = $connection-get('/users/lookup.json',
array('screen_name' = 'biz,twitterapi'));
  // neither method seems to work. Advice on which one to use would
also be nice.
 // $userDeets = $connection-get('/users/lookup.json?
screen_name=biz,twitterapi');

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

Again I'm hoping it's just something stupid syntactically that I'm
doing. -Gabe


On Mar 6, 1:13 pm, Randolph Estebat raeste...@gmail.com wrote:
 Naresh -- users/lookup requires authentication. You would need to OAuth with
 Twitter for you to get this API working.









 On Sat, Mar 5, 2011 at 11:04 AM, Naresh naresh.jonn...@gmail.com wrote:
  hi!
  i am very new to twitter API.
  my question is:
 http://api.twitter.com/1/users/lookup.json?user_id=1401881,1401882
  this is example url of twitter, it never works.
  and it returns

  {

     * request: /1/users/lookup.json?user_id=1401881,1401882
     * error: Could not authenticate you.

  }

  could you tell me, how to get friends info, like name, thum,...etc

  thanx

  -
  naresh jonnala.

  --
  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

 --
 Randolph Estebat

-- 
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


[twitter-dev] Re: users/lookup.json

2011-03-05 Thread mabujo
This method requires authentication, so you will need to sign the
request with oauth tokens before it will work.

On Mar 5, 4:04 am, Naresh naresh.jonn...@gmail.com wrote:
 hi!
 i am very new to twitter API.
 my question 
 is:http://api.twitter.com/1/users/lookup.json?user_id=1401881,1401882
 this is example url of twitter, it never works.
 and it returns

 {

     * request: /1/users/lookup.json?user_id=1401881,1401882
     * error: Could not authenticate you.

 }

 could you tell me, how to get friends info, like name, thum,...etc

 thanx

 -
 naresh jonnala.

-- 
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


Re: [twitter-dev] Re: users/lookup.json

2011-03-05 Thread NARESH JONNALA
thanx mabujo,

i am trying to fetch data using curl, but i don't know, how to do...
could you give an example please.

is any non-oauth way is there, to fetch friends info?


On Sun, Mar 6, 2011 at 12:20 AM, mabujo jaa...@gmail.com wrote:

 This method requires authentication, so you will need to sign the
 request with oauth tokens before it will work.

 On Mar 5, 4:04 am, Naresh naresh.jonn...@gmail.com wrote:
  hi!
  i am very new to twitter API.
  my question is:
 http://api.twitter.com/1/users/lookup.json?user_id=1401881,1401882
  this is example url of twitter, it never works.
  and it returns
 
  {
 
  * request: /1/users/lookup.json?user_id=1401881,1401882
  * error: Could not authenticate you.
 
  }
 
  could you tell me, how to get friends info, like name, thum,...etc
 
  thanx
 
  -
  naresh jonnala.

 --
 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




-- 
Regards,
Naresh Jonnala

-- 
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