Frank Chau
Frank Chau

Reputation: 33

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.

Upvotes: 3

Views: 2674

Answers (2)

Shila Mosammami
Shila Mosammami

Reputation: 1077

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

Upvotes: 2

star_2014
star_2014

Reputation: 3

Did you include the "OAuth Client ID" in the OAuth 2.0 Configuration tab? with

OAuth flow:Client side Use your own OAuth credentials: (mark with a tick) OAuth Client ID: (enter your oauth client id)

In step 1: https://www.googleapis.com/auth/business.manage In step 2: https://mybusiness.googleapis.com/v4/accounts

Upvotes: 0

Related Questions