Google My Business API(GMB)获取位置媒体

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

Google My Business API (GMB) Fetch Locations Medias

问题

GMB已从https://mybusiness.googleapis.com更改为https://mybusinessaccountmanagement.googleapis.com

我正在尝试获取每个位置的媒体。在以前的版本中,我可以像这样获取媒体的URL:https://mybusiness.googleapis.com/v4/accounts/locations/<location_number>/media

但它不再起作用,即使新版本也不起作用。
(https://mybusinessaccountmanagement.googleapis.com/v1/accounts/locations/<location_number>/media)

我如何能够获取每个位置的媒体项目。

英文:

GMB is changed from
https://mybusiness.googleapis.com to https://mybusinessaccountmanagement.googleapis.com

I am trying to fetch every locations medias. In previous version i can able to fetch medias like this url https://mybusiness.googleapis.com/v4/accounts/locations/&lt;location_number&gt;/media

But it didn't work anymore even the new version doesn't work.
( https://mybusinessaccountmanagement.googleapis.com/v1/accounts/locations/&lt;location_number&gt;/media )

How can I able to fetch every locations media items.

答案1

得分: 0

由于媒体 API 端点尚未迁移到新的媒体 API,您仍然需要使用 GET https://mybusiness.googleapis.com/v4/{parent=accounts/*/locations/*}/media 端点。

参考链接:https://developers.google.com/my-business/reference/rest/v4/accounts.locations.media/list

英文:

Since the media API endpoint was not migrated to a new media API yet, you still need to use the GET https://mybusiness.googleapis.com/v4/{parent=accounts/*/locations/*}/media endpoint.

Reference: https://developers.google.com/my-business/reference/rest/v4/accounts.locations.media/list

huangapple
  • 本文由 发表于 2023年7月24日 19:41:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/76754136.html
匿名

发表评论

匿名网友

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

确定