英文:
List all locations from a single account in Google my business API
问题
我的要求是我试图获取帐户所有位置的所有评论。所以首先我尝试列出帐户中的所有位置,使用以下链接:
https://mybusinessbusinessinformation.googleapis.com/v1/{parent=accounts/****}/locations
我在使用谷歌OAuth2 Playground模拟此情景时却收到了404未找到错误。
然而,我可以列出所有帐户,使用以下链接:
https://mybusinessaccountmanagement.googleapis.com/v1/accounts
这会给我所有的帐户。
但如何从单个帐户获取所有位置呢?
英文:
My requirement is I'm trying to get all the reviews from all the locations of an account. So first I'm trying to list all the locations in an account using:
https://mybusinessbusinessinformation.googleapis.com/v1/{parent=accounts/****}/locations
I'm using Google Oauth2 Playground to replicate this scenario but getting 404 not found error.
However I can list all the accounts using: https://mybusinessaccountmanagement.googleapis.com/v1/accounts
this gives me all the accounts.
But how to get all the locations from a single account?
答案1
得分: 3
查询参数readMask是必需的,请求应如下所示:
英文:
The query parameter readMask is required, the request should look like:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论