Is it possible to use javacsript client library for GMB?[ Edited ]
October 2016 - last edited October 2016 by Terry W
Can I load GMB and use it?
if not - is it possible to use the generic gapi.client.request
from the same client library (seems not due to different base domain)?
and if not - how should I properly pass the token?
currently using the fetch api and adding an header to the request:
key is: Authorization
value is concatenation of:
which comes out something like: Bearer XXXX.YYYYYY
Re: Is it possible to use javacsript client library for GMB?
Hi @Guy K,
If you’ve managed to successfully obtain an access token for making requests via the Google My Business API, you can send the access token to the API in an HTTP authorization header such as the following sample request message for listing all accounts including the request line and request header fields:
GET /v3/accounts HTTP/1.1 Host: mybusiness.googleapis.com Content-length: 0 Authorization: Bearer <YOUR_ACCESS_TOKEN>
Please check out the Using OAuth 2.0 for Client-side Web Applications page for more support.