Search code examples
google-oauthgoogle-my-business-apioauth2-playground

Google My Business API: Getting 404 Error


I recently signed up for Google My Business and I'm trying to use OAUTH playground in order to make API requests.

Here's my info:

Project name SalesForce

Project ID salesforce-273422

Project number 310709897826

I'm running into issues with the google my business API. I am trying to follow instructions listed here: https://developers.google.com/my-business/content/basic-setup#make-simple-http-request in order to make some request to the My Business API.

My client ID is 310709897826-i0qmgqucprqug6gmtb32oualp4q7k374.apps.googleusercontent.com and I am still unable to make any successful requests with the oauth playground, i get a 404 not found when i try to list all accounts. Is there any configuration that is incorrect or that I'm missing?

Please help! I'm unsure what's wrong.


Solution

  • First of all, open the playground [https://developers.google.com/oauthplayground], from the top right side, follow the pic below and copy paste your clientId, make sure you have selected "client-side". enter image description here

    Then, on the left side, eneter https://www.googleapis.com/auth/business.manage and press the button "Authorise Apis"

    enter image description here

    Next, you are asked to sign in with your client username and password, so after signing in, you are given about an hour or so to work in playground: enter image description here