title: people.connections.list not returning contacts using Python Client Library
body: <p>I'm trying to programmatically access the list of contacts on my own personal Google Account using the Python Client Library</p>
  
  <p>This is a script that will run on a server without user input, so I have it set up to use credentials from a Service Account I set up. My Google API console setup looks like this. </p>
  
  <p><a href="https://i.stack.imgur.com/bTX2H.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bTX2H.png" alt="enter image description here"></a></p>
  
  <p>I'm using the following basic script, pulled from the examples provided in the API docs -</p>
  
  <pre><code>import json
  from httplib2 import Http
  
  from oauth2client.service_account import ServiceAccountCredentials
  from apiclient.discovery import build
  
  # Only need read-only access
  scopes = ['https://www.googleapis.com/auth/contacts.readonly']
  
  # JSON file downloaded from Google API Console when creating the service account
  credentials = ServiceAccountCredentials.from_json_keyfile_name(
      'keep-in-touch-5d3ebc885d4c.json', scopes)
  
  # Build the API Service
  service = build('people', 'v1', credentials=credentials)
  
  # Query for the results
  results = service.people().connections().list(resourceName='people/me').execute()
  
  # The result set is a dictionary and should contain the key 'connections'
  connections = results.get('connections', [])
  
  print connections  #=&gt; [] - empty!
  </code></pre>
  
  <p>When I hit the API it returns a result set without any 'connections' key. Specifically it returns -</p>
  
  <pre><code>&gt;&gt;&gt; results
  {u'nextSyncToken': u'CNP66PXjKhIBMRj-EioECAAQAQ'}
  </code></pre>
  
  <p>Is there something pertaining to my setup or code that's incorrect? Is there a way to see the response HTTP status code or get any further detail about what it's trying to do?</p>
  
  <p>Thanks!</p>
  
  <p>Side note: When I try it using <a href="https://developers.google.com/people/api/rest/v1/people.connections/list#try-it" rel="noreferrer">the "Try it!" feature in the API docs</a>, it correctly returns my contacts. Although I doubt that uses the client library and instead relies on user authorization via OAuth</p>