title: Google API dailyLimitExceededUnreg
body: <p>I'm using the Google URL shortener API in a PHP app. It has been working for months but now I am getting this error: </p>
  
  <pre><code>[errors] =&gt; Array (
     [0] =&gt; stdClass Object (
        [domain] =&gt; usageLimits
        [reason] =&gt; dailyLimitExceededUnreg
        [message] =&gt; Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.
        [extendedHelp] =&gt; https://code.google.com/apis/console
      )
  )
  [code] =&gt; 403
  [message] =&gt; Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.
  </code></pre>
  
  <p>I'm using the server key from the developer console, I regenerated the key and even deleted the server access key section and re-added it but I keep getting the same auth error. </p>
  
  <pre><code>$query_array = json_encode( array( "longUrl" =&gt; $data['long_url'], 'key' =&gt; 'AIza-Key' ) ); 
  
  $curl = curl_init( 'https://www.googleapis.com/urlshortener/v1/url' );
  
  curl_setopt($curl, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json' ) );
  
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  
  curl_setopt($curl, CURLOPT_POST, 1);
  
  curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query( $query_array ) ) ;             
  
  curl_setopt($curl, CURLINFO_HEADER_OUT, true);
  
  $short_url = json_decode( curl_exec( $curl ) );
  
  $header = curl_getinfo($curl, CURLINFO_HEADER_OUT );
  
  curl_close( $curl );
  
  print_r( $short_url ) ; // shows above error
  </code></pre>
  
  <p>This API shouldn't be that hard, just add the server key in the URL string, but I'm not seeing the issue. Any ideas? </p>