开发者

How to get User information of the Oauth authenticated user from Google & Twitter?

I have authenticated the user with oauth on both twitter & Google and have access_tokens.

(Using Python)

But,

How to get the information about this authenticated user ?

Eg: Nam开发者_C百科e, Age, Email, gender, etc.


For Twitter, I'd suggest using the tweepy library. It provides a nice Python API for accessing all the data you can get back from Twitter, such as user data.

If you want to do it yourself, you'd want to look at the docs for Twitter's REST API, specifically the User resource. I don't think you can get such personal information as age, email, gender from the API at all, however.


Google is more complicated since it has many APIs for different things. This Python library supports a bunch of them: http://code.google.com/p/google-api-python-client/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜