I'm developing an Android application and I need to retrieve user profile picture. I already use OAuth to get the token as described here: http://android-developers.blogspot.it/2013/01/verifying-back-end-calls-from-android.html
Any,I'm not able to correctly retrieve user's info. I've tried with this:
https://www.googleapis.com/plus/v1/people/me?key={YOUR_API_KEY}
But I'm not able to understand what's the KEY: On my google console I have:
- Client ID for web application
- Client ID for Android application
- Key for server applications
- Key for Android applications
Which of them is the correct key? I'm a bit confused. I use the Client ID for web when retrieving the token and to verify it on the backend. I use the Client ID for Android to check on backend side that the issuer is between Authorized Parties. Anyway, when I make a request to:
https://www.googleapis.com/plus/v1/people/me?key={YOUR_API_KEY}
I always get a 401,400,or 403 saying:
- "Access Not Configured. Please use Google Developers Console to activate the API for your project."
- Bad Requeset
- "Invalid Credentials"
and so on.
I've also tried to look at this question with no luck: How to call https://www.googleapis.com/plus/v1/people/me at google
But if I try to query the Google+ API from the Google Cloud Console I successfully get all the info.
What am I doing wrong?