My Business
2.3K members online now
2.3K members online now
For developers who are using the Google My Business API to manage locations
Guide Me
star_border
Reply

API is returning 404 - method not found

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

 

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.

 

Php code

 

        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 ?

 

Thanks

 

Marc

1 Expert replyverified_user

Re: API is returning 404 - method not found

Google Employee
# 2
Google Employee

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.

 

Thanks,

The Google My Business API team