列出Google我的业务API中单个账户的所有位置。

huangapple go评论61阅读模式
英文:

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.

列出Google我的业务API中单个账户的所有位置。

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是必需的,请求应如下所示:

https://mybusinessbusinessinformation.googleapis.com/v1/accounts/117163.......7290...757/locations?readMask=name

英文:

The query parameter readMask is required, the request should look like:

> https://mybusinessbusinessinformation.googleapis.com/v1/accounts/117163.......7290...757/locations?readMask=name

huangapple
  • 本文由 发表于 2023年7月28日 03:59:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/76783031.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定