Buttons on Google
const url = 'https://digize.com/api/v1/reviews/google/buttons';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/reviews/google/buttons \ --header 'x-api-key: <x-api-key>'Digize’s “Book online” and “Shop online” buttons on the Google Business Profile, links other providers set there, and the booking pages and store they can lead to.
Needs the reviews:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
object
object
What it opens: the calendar’s name, or the store’s.
On Google, on its way there, or refused with rejection.
object
What it opens: the calendar’s name, or the store’s.
On Google, on its way there, or refused with rejection.
Links other providers put on the location.
object
Google’s place action type, such as DINING_RESERVATION.
The business itself, or a partner of Google’s such as a booking service.
Why Google wouldn’t list the location’s links.
object
Whether it’s a Google Meet calendar.
Example
{ "book": { "type": "APPOINTMENT", "state": "live" }, "shop": { "type": "APPOINTMENT", "state": "live" }, "others": [ { "provider": "merchant" } ]}What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}