[twitter-dev] convert large number of usernames to userids
How would I go about converting a large number of usernames (300+) to userids? My plan is to use user/follow, which uses userids. I have tried using users/lookup (http://dev.twitter.com/doc/get/users/ lookup), but I need the OAuth of the users I am looking up, which I don't have. I could use user/show but that would take a long time, I am hoping to find something more efficient. Thank you. -- 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] convert large number of usernames to userids
The solution for this would involve coding if it were me. Store the usernames in an array. Loop through the array while calling: http://api.twitter.com/1/users/show.json?screen_name=screen_name Parse out the id. Cheers, Barce On Mon, Mar 28, 2011 at 1:14 PM, Riley digitalsimplif...@gmail.com wrote: How would I go about converting a large number of usernames (300+) to userids? My plan is to use user/follow, which uses userids. I have tried using users/lookup (http://dev.twitter.com/doc/get/users/ lookup), but I need the OAuth of the users I am looking up, which I don't have. I could use user/show but that would take a long time, I am hoping to find something more efficient. Thank you. -- 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 -- Jim Barce Barcelona ba...@appdevandmarketing.com http://appdevandmarketing.com/ http://twitter.com/barce -- 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] convert large number of usernames to userids
Hey Riley, You should use users/lookup, with the screen_name parameter (up to 100 are allowed in a single request). Not sure to get what you mean by the OAuth of the users I am looking up? The only thing you need is to sign your request. Arnaud / @rno On Mon, Mar 28, 2011 at 1:14 PM, Riley digitalsimplif...@gmail.com wrote: How would I go about converting a large number of usernames (300+) to userids? My plan is to use user/follow, which uses userids. I have tried using users/lookup (http://dev.twitter.com/doc/get/users/ lookup), but I need the OAuth of the users I am looking up, which I don't have. I could use user/show but that would take a long time, I am hoping to find something more efficient. Thank you. -- 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 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