API is returning 404 - method not found
I'm trying to connect in My Business Google API and it is returning me 404 - not found.
I'm using google/apiclient v2.1.2 and I already have the my business api enabled in my account.
putenv('GOOGLE_APPLICATION_CREDENTIALS=/test/Vulco-my-business-ae76ce64d69b.json'); $client = new Google_Client(); $client->useApplicationDefaultCredentials(); $client->addScope('https://www.googleapis.com/auth/plus.business.manage'); $httpClient = $client->authorize(); /** @var Response $response */ $response = $httpClient->get('https://mybusiness.googleapis.com/v3/accounts');
Some idea about where is the error ?
Re: API is returning 404 - method not found
Hi @Marc M,
The 404 Method not found error typically happens when you are using a different Project ID from the one we whitelisted for your company to access the Google My Business API.
We’ll reach out to you privately on a separate thread for more details.
The Google My Business API team