0

I'm working with the Google API, I got the token here

{
  access_token: 'ya...',
  scope: 'https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile openid',
  token_type: 'Bearer',
  id_token: 'eyJ...',
  expiry_date: 1...
}

How can I get the user information? I have used this endpoint but just able to get a few info

curl -i https://www.googleapis.com/userinfo/v2/me -H "Authorization: Bearer ya..."
{
  "id": "11...",
  "email": "...",
  "verified_email": true,
  "name": "...",
  "given_name": "...",
  "family_name": "...",
  "picture": "https://lh3.googleusercontent.com/a/ACg...",
  "locale": "en"
}

I would like to get more information such as creation time, and activities like use how active this account using (if available)

3
  • 1
    try the people api. Commented Apr 6, 2024 at 11:28
  • sorry, could you please give me this endpoint? Commented Apr 6, 2024 at 11:51
  • 1
    Let me just google that for you. Here is the link to the documentation people api 🤦‍♀️ Commented Apr 6, 2024 at 15:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.