seejohnrun / google_plus

Google+ Ruby Gem
163 stars 31 forks source link

Google Plus API Shutdown #21

Open muneebaahmad opened 5 years ago

muneebaahmad commented 5 years ago

Should we stop using this gem starting March 7th, 2019? See the article below:

https://developers.google.com/+/api-shutdown

seejohnrun commented 5 years ago

Yeah - at that point I'll likely just archive this repo - thanks for the heads up!

muneebaahmad commented 5 years ago

For people who are looking for a solution for this, I was able to get around this issue by just making an API call to the following endpoint using https://www.googleapis.com/oauth2/v2/userinfo. You can use the same access_token in the Authorization header as the one you use for this gem. The response from google will look like the following:

{
    "id": "4236436245",
    "email": "example@gmail.com",
    "verified_email": true,
    "name": "David Beckham",
    "given_name": "David",
    "family_name": "Beckham",
    "link": "https://plus.google.com/4236436245",
    "picture": "https://lh3.googleusercontent.com/-a5rGm7P4sdfasdfg/AAAAAAAAAAI/AAAAAAAAC2c/EHpJrKetbKI/photo.jpg",
    "gender": "male",
    "locale": "en"
}

I suggest you try it out using Curl, Postman or Insomnia before starting the implementation.

seejohnrun commented 5 years ago

I'll leave this issue around for reference for people, but archiving the repo now. Thanks!