I tried to use the googleapi#27 to get the profile information but it gave me only following fields.
{
emailAddress: 'jainshravan321#gmail.com',
messagesTotal: 2122,
threadsTotal: 2111,
historyId: '116715'
}
I tried above with this(https://developers.google.com/gmail/api/quickstart/nodejs?authuser=1) example. I need all of the fields like firstname, lastname, email address, contact number & all of the fields available in user's profile. So do you know any way by which i will be getting all of the fields of user's profile using googleapi under node js.
Users: getProfile
Gets the current user's Gmail profile.
A users gmail profile consists of
{
"emailAddress": string,
"messagesTotal": integer,
"threadsTotal": integer,
"historyId": unsigned long
}
The information you are looking for its not part of the Gmail api. The gmail api is a mail system it is not a user profile system. You should try looking into the People api or the google+ api.
People api is basically linked to google contacts so if the user has not filled in this information you wont get it back. Google+ api is linked to the google plus social media site. If the user has not set the information public for example phone number you will not be able to see it.
There is no really good way of getting this information back.
Update: after a big of googling it looks like the call for people and google+ is the same endpoint now. But the data comes from Google+ and contacts combined.
Related
Happy coding for everyone!
I need to obtain the email and phone from a friend instagram public profile using the Instagram Graph API.
I am using a long live access token and only let me retrieve a couple of basic information fields but i am stuck on to query another insta public profile and get the user information.
I saw few software that lets you get a bundle of instagram phone numbers, i am trying to make that work ... after days of research still can't achieve this.
{
id: 'xxxx',
username: 'Jhon Doe'
}
This is the example of the response using user_profile scope in the query
https://graph.instagram.com/v15.0/testeridofinstaapp?fields=username&access_token=XXXXXXX
It is not possible. The API only allows you to retrieve a user's public profile information, such as their username and profile picture.
Check Instagram docs
I am trying to use Instagram Basic Display API (V2) to get username and user profile picture of user who logs into application.
I have given necessary permissions to the application for eg. instagram_user_profile & instagram_user_media, I am successfully getting username of the user but i am not getting any API end point which will return me user's profile picture.
following is the link I am referring to for Instagram Basic Display API
https://developers.facebook.com/docs/instagram-basic-display-api
I have tried to query the media node using following GET api listed in the documentation https://graph.instagram.com/{userid}/media?access_token=IGQV....
But in response i am able to get only data of Instagram POST of logged in user.
I'm having the same issue. Instagram Basic Display doesn't provide basic info like user display name and profile picture.
Even the known workarounds, like https://www.instagram.com/USERNAME/?__a=1, are not fully working anymore (think they added some IP filtering, because it works from my machine but if I deploy to an AWS Lambda it doesn't).
The only official way to get the user info that I know is the Instagram Graph API, but it's only for Instagram Business :(
It is possible to get data from Instagram users, like number of posts, profile photo etc from a backend service? I don't want to force my user to login into his Instagram account to get those informations.
I'm reading about Instagram new api but always it talks about oauth which implied force login vis frontend.
Thanks.
Why would Instagram give some users data, without login? Only possible option is through Instagram public APIs, using OAuth/OIDC.
You should be able to use someone else's token (... yours?) to fetch informations about users and posts.
But that will always be limited.... for example users with non public profile, you won't be able to see those, or maybe you'll loose some posts, ....
I wonder if I can get user information (such as email) by using the google search console API. I know I could get it with Google Analytics API but I wonder if this can be done with using only search console API.
I think there is no way to get user information from google search console api. So I used https://www.googleapis.com/oauth2/v3/tokeninfo?access_token=token. Token is the 'token' key that exists in credentials json. Also you will need userinfo.email scope in order to get email of the user.
'https://www.googleapis.com/auth/userinfo.email'
There are a few questions on individual components of "Sign in with Google" floating around, but I can't find any that refer to the current API (as of July 2015).
I have a "Log In with Gmail" option in my webapp, and I'd like to retrieve:
All emails that I've ever sent and received (if possible)
A list of all my contacts
A list of all my contacts' profile pictures (and any other info that may be possible, like location, gender, age etc)
Right now, in my oAuth login I use the following scope:
['profile', 'email','https://www.googleapis.com/auth/userinfo.profile', 'https://www.google.com/m8/feeds']
Then once I have my oAuth token, I make the following API call:
https://www.google.com/m8/feeds/contacts/default/full?max-results=10000&alt=json&oauth_token={{token}}
This give me a list of contact emails and associated names, but no pictures (at least that I can find) and no other info about contacts.
I'd also like to be able to download all of the user's sent/received emails, I understand that I have to do this via IMAP but I can only find NodeJS implementations that require a username and passwords. Is it possible to do using an oAuth token?
Ideally I'd like to do this all with the one oAuth call, as I'm building an email analysis tool.
Gmail provides an HTTP API you can use to access all of a user's sent and received emails.
The Contacts API is basically only information the user has manually entered for the contact. Most users aren't going to be entering age and gender and contacts will only have locations if the user treats it like a traditional address book.
If you want to get something more like a social profile you might want to check out the Google+ people.list API. You will have to find a way to correlate between contacts and Google+ profiles but Google+ profiles are more likely to have photos demographics data.