验证场所所有者Google Places API [英] Validate Place Owner Google Places API

查看:45
本文介绍了验证场所所有者Google Places API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在计划一个企业所有者可以在其中注册他的位置的应用程序.我想使用Google Places API来获取商家信息.这样,当新用户在应用程序中注册时,他将提供其所在位置的ID,然后该应用程序将从API中检索信息.我将需要某种方式来验证正在注册的用户是企业的实际所有者.那可能吗?有人知道如何实现这一目标吗?

I am planning an application where the owners of a business can register his place. I would like to use Google Places API for fetch the information of the business. That way, when a new user registers in the app, he provides an ID of his place, and the app retrieves the information from the API. I am going to need some way to validate that the user that is registering is the actual owner of the business. Is that possible? Does anybody have any idea how to achieve this?

我一直在想,如果我可以检索在Google地方中注册该地方的人(实际所有者)的电子邮件,那么我可以向该地址发送电子邮件以进行验证,但是我找不到文档以任何方式获取.

I've been thinking that if I could retrieve the email of the person who registered the place in google places (the actual owner), then I could send an email to this address for validation, but I can't find in the documentation any way to get that.

谢谢!

推荐答案

现在看起来像这样是可能的.工作流程如下:

Looks like this is possible now. The workflow would be the following:

  1. 您的用户触发位置搜索并在结果中选择一个特定位置
  2. 您的用户在您的应用中选择一个选项,声称自己是您的位置的所有者
  3. 您的用户被重定向到OAuth流中,并使用他们的Google凭据登录到Google地方
  4. 通过身份验证后,您的应用将获得针对用户的OAuth令牌
  5. 您的应用程序将该令牌以及对Places API所有者验证服务的Place引用一起提交
  6. Places API返回有关用户是否是Places的已验证所有者的是/否

来源- https://code.google.com/p/gmaps-api-issues/issues/detail?id = 3894 -评论#3

享受!

这篇关于验证场所所有者Google Places API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆