I've created a custom module to use the Google MyBusiness (GMB) API to get reviews etc for a specified location.
The issue I am having at the moment is authenticating. All the examples I have read suggest a two step process, first, get an access token, then make actual API call to request reviews.
The above requires setting up a redirect URL for google to send the authentication response, as far as I understand it. The questions I had were
After setting up the Google client library how do you handle the RedirectUrl in the context of
http://localhost:81 (My local dev server which I doubt is possible considering google wont know who localhost is)
....or is it possible to have . permanent AccessToken for this which is stored in the config and simply make immediate calls to the Google API, much like Twitter allows for posting tweets automatically.
It would be nice to simply be able to do a Guzzle request to a Google API endpoint with attached accesstoken and skip the handshaking and requestAccessToken step.
Regards and Thanks John