title: google url shortener not working with api key via curl in console
body: <p>I'm trying to curl google url shortener API via command line and getting the following error: </p>
  
  <p>error code: 403</p>
  
  <p>error message: Access Not Configured. Please use Google Developers Console to activate the API for your project.</p>
  
  <p>this is my request:</p>
  
  <pre><code>curl -X POST 'https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyA5EGsBIvk7TNu_oBFXBeDL5pWOWXXXXXX'   -H 'Content-Type: application/json'   -d '{"longUrl": "http://www.google.com/"}'
  </code></pre>
  
  <p>also tried GET: </p>
  
  <pre><code>curl 'https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyA5EGsBIvk7TNu_oBFXBeDL5pWOWXXXXXX'   -H 'Content-Type: application/json'   -d '{"longUrl": "http://www.google.com/"}'
  </code></pre>
  
  <p>curling without API key works fine. My server IP is properly set in Google developers console, API is switched on and I'm not behind any proxy...</p>
  
  <p>Also tried to append the 'userIp' parameter in GET and through -d as documentation suggests, but no luck.</p>
  
  <p>Any help is appreciated.. </p>
  
  <p>Thanks.</p>