英文:
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/<location_number>/media
But it didn't work anymore even the new version doesn't work.
( https://mybusinessaccountmanagement.googleapis.com/v1/accounts/locations/<location_number>/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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论