Hi! Twitter returns the screenname and user id with almost any API call, and also along with the Access Token. For other services you have to check which API call can give you an account name. There is no standardized way in OAuth to do this. Regards, Lukas
PS: Anyone thinks this should be standardized?! 2010/5/11 hank williams <[email protected]> > I am an Oauth Noob, and so I have a basic question. > > My company is intending to support Twitter, Google apps, and Yahoo apps > access via Oauth. > > I know that part of the purpose of Oauth is to prevent the application > developer from seeing the account name/password. But I am wondering if it is > indeed the goal to keep the account name from the application developer. We > would like to support a users ability to access multiple accounts on the > same service. For example through our service the user could access two > google accounts because they have two separate gmail accounts. For a proper > user interface we need to be able to request, from within a given API, a > call of the type "what is the username for this account". This will allow us > to provide a UI that has choices for which account the user wants to be able > to use. > > I have just been looking at the twitter API and I do not see a "what is the > username for this account" call, and so I thought I would ask here if I am > somehow barking up the wrong philosophical tree, and if not if anyone knows > how to make such calls for twitter, yahoo and google. > > Thanks, > Hank. > > -- > blog: whydoeseverythingsuck.com > > -- > You received this message because you are subscribed to the Google Groups > "OAuth" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected] <oauth%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/oauth?hl=en. > -- http://lukasrosenstock.net/ -- You received this message because you are subscribed to the Google Groups "OAuth" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/oauth?hl=en.
