简体   繁体   English

为旅游公司实施Google评论

[英]Implementing Google Reviews for a Travel Company

I work for a large online travel company that allows customers to book hotels. 我为一家大型在线旅行公司工作,该公司允许客户预订酒店。

They currently show users Trip Advisor reviews of the property they are currently viewing but are wanting to switch to Google Reviews instead. 他们当前向用户显示Trip Trip Advisor对他们当前正在查看的财产的评论,但希望改为使用Google评论。

I believe the correct API is Google Places but it appears limited to 5 reviews? 我相信正确的API是Google地方信息,但似乎仅限5条评论? Is there any sort of widget or way to implement Google Reviews? 是否有任何实现Google评论的小部件或方法?

Just to note, this is not to show reviews of our business but of a hotel searched for by a user. 只是要注意,这不是显示对我们业务的评论,而是显示用户搜索的酒店。

1) first of all you need to white list your google my business api for whatever project you are working on in your project as its private api. 1)首先,对于您在项目中从事的任何项目,都需要将自己的google我的业务api列入白名单,作为其私有api。 Google my business api will work on the locations associated with your account so make sure you verified the LOCATIONS from any account you know. Google我的业务api将在与您的帐户关联的位置上运行,因此请确保您从任何已知的帐户中验证了LOCATIONS。 Then you can try out the api call you mentioned in OAuthplayground. 然后,您可以尝试在OAuthplayground中提到的api调用。

2) Follow steps mentioned in below documentation URL to set it up: https://developers.google.com/my-business/content/prereqs After the setup and etc you will automatically understand the account id and location id. 2)请按照以下文档URL中提到的步骤进行设置: https : //developers.google.com/my-business/content/prereqs在进行设置等后,您将自动了解帐户ID和位置ID。

i am providing the api that will help you to get the fetch the review 我提供的api将帮助您获取评论

  1. get account details: https://mybusiness.googleapis.com/v4/accounts?access_token={access_token} 获取帐户详细信息: https : //mybusiness.googleapis.com/v4/accounts?access_token={access_token}

  2. get location Id https://mybusiness.googleapis.com/v4/accounts/{accountID}/locations?access_token={access_token} 获取位置ID https://mybusiness.googleapis.com/v4/accounts/{accountID}/locations?access_token={access_token}

  3. get review https://mybusiness.googleapis.com/v4/accounts/{accountID}/locations/{location_id}/reviews?access_token={access_token} 获得评论https://mybusiness.googleapis.com/v4/accounts/{accountID}/locations/{location_id}/reviews?access_token={access_token}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM