I am developing a Google Chrome Extension. I would like to be able to access the user profile info, using the data from these endpoints:
I don't seem to have access to these resources. From my web searches, it looks like I may need to enable a library API in the Google Developers Console. But I looked there and cannot find an appropriate API to enable. Does anyone know which API I should enable?
https://www.googleapis.com/oauth2/v1/userinfo, it is not required to enable API related to this. You can use the endpoint by access token retrieved from OAuth2 process. When you use this, please includehttps://www.googleapis.com/auth/userinfo.profileto the scopes. If this information was not useful for you, I'm sorry.curl -H "Authorization: Bearer ### access token ###" "https://www.googleapis.com/oauth2/v1/userinfo". I confirmed that it worked. The scope of token is onlyhttps://www.googleapis.com/auth/userinfo.profile. About the endpoint,https://www.googleapis.com/oauth2/v1/userinfoandhttps://www.googleapis.com/oauth2/v2/userinforeturn the same information.userinfo, it returns the same information. Also v3 is the same. It seems that about the endpoints except foruserinfo, there is the difference between versions. stackoverflow.com/questions/31277898/…