Google Places Owner Authentication via API

I am currently developing an application using the Google Places API.

https://developers.google.com/places/documentation/

I want to use the Events methods so that the Place / Business owner can add events.

https://developers.google.com/places/documentation/actions#event_intro

However, I obviously must limit it, so that only the business owner can create events for his business. Is there a way to authenticate a user via Google api to confirm that they own the place? I looked at Google+, however, the request for people doesnโ€™t contain any link to this user's "Place" setting.

+4
source share
1 answer

Seems like it's possible now. The workflow will be as follows:

  • The user starts the search for places and selects a specific place in the results.
  • The user selects an option in your application to declare that he is the owner of your place.
  • Your user is redirected to the OAuth stream in Google Places, where they register with Google credentials
  • After authentication, your application is provided with an OAuth token for the user.
  • Your application sends this token along with the "Link" link to the "Site" website owner verification service
  • Places API returns yes / no as to whether the interested user is a verified owner of the Place

Source - https://code.google.com/p/gmaps-api-issues/issues/detail?id=3894 - comment # 3

Enjoy it!

-one
source

Source: https://habr.com/ru/post/1493358/


All Articles