How to Get User Information From Google Search Console API - python-3.x

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'

Related

get profile picture of logged in user on Instagram

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 :(

Getting API key from API on google Chatbase

I would like to create Chatbase bots for new users/domains automatically.
For example if user has used Google-login and his authorization key is stored and analytics information like website url etc is fetched it would be nice to automatically create a bot for user.
So the question is: is there a possibility to get API-key for new bot programmically on Google Chatbase from API?
Unfortunately it is not possible to programatically create or edit Chatbase API keys.

Netsuite API authenticate validation

I have sample mobile app with username and password authentication,need to valid my sample app username & password exists in netsuite based website. Please provide API info and steps to access netsuite based user info to valid my app login, currently we are using nodeJS API in app. I mean if signup/existing customer from my app would exists or not in netsuite based website
Any help appreciated !
If you are trying to log in as a customer or employee you need to ensure the records have login access, and credentials set, in NetSuite.
Not completely sure from your post if you are trying to log them in, or just access your NetSuite instance and see if they exist in the NetSuite instance, though.
Can you provide more information, and clearly state what you have tried? Code samples are a very nice thing to include, along with the errors you are receiving.

How can I get a user's Google account photo using IAP and the People API? (NodeJS preferred)

I have an application that uses Google Cloud IAP to authenticate users. IAP requires the user to authenticate using their Google account, and then headers are passed to the application afterwards that identify that user (user id, user email, and a token).
I would like to get the user's Google account photo after authentication using the People API (would use the Plus api, but it is being shut down).
NodeJS code examples would help a ton, but either a high level guide or examples in other languages would also be very helpful. Thanks in advance!
For anyone that may come across this, here is the solution I found.
You will need to enable the People API in your GCP console. Then create an API key for it.
Get the 'x-goog-authenticated-user-id' header and strip the 'accounts.google.com:' portion of it to just leave the id.
Pass that id and your api key to a GET request, like so:
https://content-people.googleapis.com/v1/people/${userId}?personFields=photos&key=${apiKey}
Hope this helps someone else, too!

Account Linking API.AI user email scope

I have AWS Cognito account linking setup with Actions on Google. I have requested the scope of email. I am using API.AI, how can I get the user's email? From what I've read, you get a userId that is basically an anonymous id. How can I get user details?
For getting user details like mail id etc, you would have to enable Account linking on your google home dialog flow console.
You would also have to provide an Oauth2 server to get the authorization done.
Refer to this : https://developers.google.com/actions/identity/account-linking
Once this is done, you will receive an auth_token every time your api.ai app is invoked. You will then have to use this token and retrieve the user details like mail id from Google API services.
Let me know if I need to add more details, in case its not clear.

Resources