I want to display the GMail avatar of the user in my app. I can easily get the image URL, using the Google People API. But this API expects a user ID.
Which other Google API can I use to pass in an email address, and get back the user ID?
The Google people api is technically hooked up to Google Contacts. So if you authenticate your user and they have added themselves with a picture you will see it that way.
The Google+ api will work the same way you authenticate the user and if they have added a picture you will be able to see it.
Which other Google API can I use to pass in an email address, and get back the user ID?
NONE. There is no way Google or any other company is going to give you an api that is going to let you search on peoples email addresses and return a picture or any information about said person you may want to consult GDRP
Email address is private user information and is only accessible by being authenticated.
Related
I need to get owner details like email/username/name of the channel using youtube data API. I've checked the document. Can you please suggest a way how I can get these details for the same?
Email address - emails are usually hidden by a button protected by reCaptcha
Thanks,
AR
If you check the documentation for channels#resource you will notice that the fields you are looking for
email
username
name
Do not exist there is no way to find out the owner of a YouTube channel via the YouTube API even if you are authenticated as that user. If you did authorize the user you could add the profile and email scopes and this would give you access to the Google People API and you would be able to find that information there.
If you are not authorizing the user then there is no way you are going to get private personal information about a user from a public api endpoint.
I had a "sign in with Google+" function in my web-app. Upon signing in I would show user's email and name on the page and save it to database. To fetch user's profile data after sign in I used Google+ API method people.me with access_token in GET params.
Google+ API is going to shut down on March 7. I have to migrate to Google People or some other api. How do I achieve the same goal with a different google API? I need to fetch email and name by known auth token.
We use this through Laravel's Socialite, and they're replacing it with:
https://www.googleapis.com/userinfo/v2/me
You may want the profile scope as part of the OAuth flow to make the profile data accessible through this methods. Otherwise it will return incomplete data.
i am using pinterest api to register a user on my website. i get user id, first name, last name and url. but email is not given in the response. how can is there any api to get email of pinterest user?
You cant get email address of Authenticated user via API. Pintrest do not provide that detail through API.
I know I can get it with a Google+ user ID, but I don't have that, I just have the users' email address. I don't want to make them login with their Google account.
Is it possible to get the photo? I'm thinking not, but I just wanted to make sure. Here's the most info on it I could find:
https://code.google.com/p/google-plus-platform/issues/detail?id=64
As the feature request says, there is no way to look up a Google+ profile via email address. Since the only way to get a profile's avatar is by looking up their profile, there is no way to get a profile's avatar via email.
Gravatar might be a better fit for what you are trying to do.
You can get their name and profile photo with avatarapi
I'm developing something with the Google Books API, but I think this can be generalized across many of Google's APIs.
Suppose I have an app that's got a social aspect where I can add friends and see their Google Books collection. From the API docs, it says I can retrieve anybody's collection if I know their userid, but I can't find any way to retrieve it programmatically. The only thing I can expect a user to know is their friend's gmail address (or Google Account Login, which, for these purposes, is the same thing). The only way I can somehow get it is through a URL on their web interface for Google books. Making users do it that way is an obscure form of torture.
Does anyone know if this is possible with any Google service?
Specifically, suppose I had a gmail address: example#gmail.com, could I then query some Google service to get the userid for that user? A userid is a basically a really big number (around 20 digits)
Here's a similar question with a solution/workaround from Nick Johnson:
The current workaround is to create a
User object, store it to the
datastore, and fetch it again. If the
email corresponds to a valid Google
account, the User object in the
returned entity will have its user_id
field populated.