I'm writing an email-based application using the gmail-api, and i need to retrieve user public images for email address originating from google. I've seen other applications do that, but i can't seem a way to reliably get this data.
some more information:
Thanks!
Edit:
I know i can receive the required images from google plus, if i have the other user's userid. however, i can't find a way to get the userid based on an email address.
Hover over their avatar, then click their name when it pops up in blue. Now you're at their Google+ profile. (You can also get there by clicking their profile pic in Google Hangouts.) Hover on the avatar in your own sent emails, and you can see your own profile.
Tap on Search with Google Lens. Select how you want to search: Use an object in the image: If available, on the object, tap on Select. Use part of an image: Tap on the Select image area, then drag the corners of the box around your selection.
Your name and profile picture can be viewed by other people who use Google services where your main Google Account profile is shown, including when you communicate or share content. Tip: For other info that you add, you can choose if it's private or visible to anyone.
Visible to everyone means anyone who you email, or who emails you, can see your picture. If you have a public Google profile without a photo and you choose this option, your picture will be used on your Google profile and will be visible to others there.
Is very easy
http://picasaweb.google.com/data/entry/api/user/<hereYourUserIdOrYourEmail>?alt=json
just has a little problem.
You only can get the picture of your Google+ profile, not directly from your gmail.
UPDATE:
This API is being deprecated and will be turned down in January 2019. Migrate to Google Photos Library API as soon as possible to avoid disruptions to your application.
More Info Here
UPDATE:
This API is being deprecated and will be turned down in January 2019. Migrate to Google Photos Library API as soon as possible to avoid disruptions to your application.
Info Here
Based on @jose920405 answer, I have written this free public API service called Pikmail API. Here some advantages.
Here is the blog post about how Pikmail API works internally.
Usage:
Html
<img src="https://pikmail.herokuapp.com/[email protected]?size=50" alt="Profile Picture">
Java Android
Picasso.with(context).load("https://pikmail.herokuapp.com/[email protected]?size=50").into(imageView);
Feel free to contribute with you pull requests, open bugs or request new features here.
Note: This service is based on an independent library called Pikmail that can be used as a Gradle dependency in your java projects(servers or Android apps).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With