Google API: Using OAuth to get the user's country - google-api

I'm trying to retrieve the user's country through Google's API. Using 'https://www.googleapis.com/plus/v1/people/me', I'd suspect that the user's country would be returned but it does not. I've looked through the docs and StackOverflow, all the the results are about retrieving the user's location using Google Maps, which I'm not interesting in.
The information is inputted when creating an account at the bottom here:
Is there any way to get this information from Google? Thanks.

Related

How do I get the Google user ID from an email address?

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.

Get the Role, Grade,School name of Logged in user from Google API

I have integrated Google sign-in in our application, I need to check whether the logged in user is a teacher or student ,Organisation(school) name and Grade... Is there any API to get these details from Google and how to get the details form Google.
Regarding whether a user is a student or a teacher, see this answer.
It's not possible to determine the grade or school name via the Classroom API. (Please add a feature request for this so we can judge whether it's something a lot of developers would find useful!)

Yammer REST endpoint to get user by full name

I'm working on a migration Product that migrates data in to yammer. I want to match the user on source to user on target based on full name. How do I retrieve user from Yammer based on Full Name? There is one REST endpoint to get user by email. Is there something similar to this for user Full Name ?
It's not possible to do this with the User API as it only supports getting a user by ID or email. You might want to look at the Autocomplete API, but it might be quicker to use the Data Export API and find the user in the users.csv file. It's hard to provide recommendations when you don't explain what you app does.

can not get information from a userid

I have an user id: 503536350,
this is the profile: https://www.facebook.com/profile.php?id=503536350
but why when I use Graph API tool, I can not get infor from this id
I don't understand why,
(image)
http://www.freeimagehosting.net/5a987
If the graph API returns 'false' it's usually because of privacy or visibility reasons. The most likely reason is that the user in question has disabled all Platform apps - such users can't be accessed at all via the API
Refer this existing answers:
How to get the Facebook user id using the access token
Graph API: How to grab current user's information?
Facebook API: can I get detailed info about user's location?
You should hit this Graph API for your information after getting Access token:
https://graph.facebook.com/me?access_token={access-token}

How do I programmatically determine a Google Account USERID token from a Gmail address without credentials?

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.

Resources