Closed
Description
Because the MyBusinessAccountManagement discovery document is incomplete (it doesn't describe the review management endpoints), this library doesn't support location review management.
I don't really know how that document works, or I'd create a PR myself.
Right now I'm just using the auth
part of the library:
import { google } from 'googleapis';
const client = new google.auth.OAuth2(
config.googleClientId,
config.googleClientSecret,
config.googleRedirectUrl
);
client.setCredentials({
access_token: tokens.accessToken,
refresh_token: tokens.refreshToken,
expiry_date: tokens.expiryDate,
token_type: tokens.tokenType,
});
const url = `https://mybusiness.googleapis.com/v4/accounts/${accountId}/locations/${locationId}/reviews`;
const res = await client.request({ url });