title: "My Contacts" group google contacts
body: <p>I just wrote a small python script that gets me all the groups on my google contacts list, however for some reason "My Contacts" does not show up in that. I'm using the 3.0 api and was having similar problems with the 2.0 api too. The following is an except taken from the <a href="http://code.google.com/apis/contacts/docs/2.0/developers_guide_protocol.html#RetrievingGroups" rel="nofollow">Google 2.0 Contacts documentation</a>.</p>
  
  <blockquote>
    <p>To determine the My Contacts group's ID, for example, you can retrieve a feed of all the groups for a given user, then find the group entry that has the  subelement, and take the value of that group entry's  element.</p>
  </blockquote>
  
  <p>Currently the response that I get does not have a gContact:systemGroup tag anywhere. How should I proceed in order to get the group id of a particular group?</p>
  
  <p>My script is as shown below:-</p>
  
  <pre><code>user="blah@gmail.com"
  pas="blah"
  data={"Email":user, "Passwd":pas, "service": "cp", "source":"tester"}
  import urllib
  data = urllib.urlencode(data)
  
  import urllib2
  req = urllib2.Request('https://www.google.com/accounts/ClientLogin', data)
  resp = urllib2.urlopen(req)
  x = resp.read()
  
  auth=a[-1].split('=')[-1]
  req = urllib2.Request('https://www.google.com/m8/feeds/groups/blah@gmail.com/full/', headers={'Authorization':'GoogleLogin auth='+auth})
  resp = urllib2.urlopen(req)
  x = resp.read()
  print x
  print "My Contacts" in x
  print "gContact:systemGroup" in x
  </code></pre>
  
  <p>Some clues on how I could troubleshoot this would be awesome, thanks.</p>