As Google+ is being deprecated, I need to migrate my Oauth 2 off of Google+ and into the Google Sign-In authentication system.

So far, I changed the list of scopes from https://www.googleapis.com/auth/plus.login email to profile email.

However, I'm struggling trying to find in Google's docs what to change the endpoint https://www.googleapis.com/plus/v1/people/me to. I'm trying to figure out the URL for the endpoint that retrieves the logged in user's public profile and email address.

The Quick migration guide doesn't seem to be very helpful unless you're using their client library (which I'm not). Their guide at https://developers.google.com/identity/protocols/OAuth2 also doesn't seem to show me a list of usable endpoints.

Help much appreciated before everything stops working permanently on January 28th.

I was able to finally discover that the correct endpoint is https://people.googleapis.com/v1/people/me?personFields= where personFields is a comma-delimited list of fields at this website: https://developers.google.com/people/api/rest/v1/people/get e.g. names,emailAddresses

The problem I ran into initially was that you don't get a friendly error message if you don't specify the personFields parameter, so I thought I had the wrong URI.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.