I am working with Google My Business API. I need to retrieve a location profile image or location logo url.
According to documentation I need MediaItem
with Enum PROFILE
or LOGO
Problem is that I found only bulk request:
GET https://mybusiness.googleapis.com/v4/{name=accounts/*/locations/*/media/*}
which returns all location media (any Enum).
In this case I have to run through response to find item I am searching for and it might be necessary to run multiple requests to access next feed pages.
This approach is irrational on my opinion.
Maybe I am missing something, so is there any way to get what I want in just one request?
Thanks in advance!
The only way is iterate through all MediaItem's
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With