title: oauth2client.client.ApplicationDefaultCredentialsError: 'type', 'authorized_user' or 'service_account' values should be set
body: <p>I'm trying to access the BigQuery API from my Python script. At the moment I'm experimenting only trying to get <a href="https://cloud.google.com/bigquery/bigquery-api-quickstart#completecode" rel="nofollow">this sample</a> to run.</p>
  
  <p>I've created credentials, set the environment variable and ran the script, only to get this error:</p>
  
  <pre><code>oauth2client.client.ApplicationDefaultCredentialsError: An error was encountered while reading json file: /PATH/TO/MY/google_api_credentials.json (pointed to by GOOGLE_APPLICATION_CREDENTIALS environment variable): 'type' field should be defined (and have one of the 'authorized_user' or 'service_account' values)
  </code></pre>
  
  <p>Well, it isn't set in the JSON file:</p>
  
  <pre><code>{"installed":{"client_id":"blahblah.apps.googleusercontent.com","project_id":"blahblah","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://accounts.google.com/o/oauth2/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"blahblah","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}}
  </code></pre>
  
  <p>Since I downloaded the JSON from the Google console, it should just work? I do not know what 'type' I would need to define.</p>