title: Using Postman to access OAuth 2.0 Google APIs
body: <p>I am trying to access <a href="https://developers.google.com/beacons/proximity/guides?hl=en" rel="noreferrer">Proximity Google API</a> using <a href="https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en" rel="noreferrer">Postman chrome app</a>. I have followed tutorials on postman and google dev website but I'm still getting 401 error message. </p>
  
  <p><strong>What am I doing?</strong></p>
  
  <ul>
  <li>Step 1 - Enable Proximity API:</li>
  </ul>
  
  <p>In order to use Proximity API, it has to be first enabled in Google Dev console. 
  Using <a href="https://developers.google.com/beacons/proximity/get-started" rel="noreferrer">this</a> tutorial I have enabled support for Proximity API for my project</p>
  
  <ul>
  <li>Step 2 - Get the credentials:</li>
  </ul>
  
  <p>According to <a href="https://developers.google.com/identity/protocols/OAuth2" rel="noreferrer">this</a> tutorial, I need to get client ID and secret. This is where I am confused. Credentials->Add credentials->OAuth2.0 client ID->select Chrome App radio button (since I am using Postman)->enter last part of Postman's Chrome Web store URL [which is <a href="https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en" rel="noreferrer">fhbjgbiflinjbdggehcddcbncdddomop]</a>->hit create button These steps will only generate a client ID, not a secret..am I doing something wrong?</p>
  
  <p>From the Google Dev console, one can download an JSON file which has client id, auth URI and Token URI
  <a href="https://i.stack.imgur.com/JG38z.png" rel="noreferrer"><img src="https://i.stack.imgur.com/JG38z.png" alt="enter image description here"></a></p>
  
  <p>I downloaded this but this is of little help if I am using Postman. I am guessing this JSON file is something that can be included in a JS application.</p>
  
  <ul>
  <li>Step 3 - Use Postman to test the API</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/cZbst.png" rel="noreferrer"><img src="https://i.stack.imgur.com/cZbst.png" alt="enter image description here"></a></p>
  
  <p><strong>What am I getting?</strong>
  <a href="https://i.stack.imgur.com/EPSZR.png" rel="noreferrer"><img src="https://i.stack.imgur.com/EPSZR.png" alt="enter image description here"></a></p>
  
  <p>And, once I click on the debug URL, I see the following screen</p>
  
  <p><a href="https://i.stack.imgur.com/VCp0y.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VCp0y.png" alt="enter image description here"></a></p>