Search code examples
google-contacts-apigoogle-data-apigoogle-data

How can i get sample dataset of Google contacts with all of its field populated to test my project?


These are few fields used to represent google contact. https://developers.google.com/gdata/docs/2.0/elements?csw=1#gdContactKind, https://developers.google.com/google-apps/contacts/v3/reference

Is there any way i can get a sample datasets for this fields which can be imported to my gmail account?


Solution

  • GData API is used by the Google Contact API (for read and write)

    The datasets you can get on these docs are both right.

    I can show you an sample working for me, written in atom:xml

        <entry xmlns='http://www.w3.org/2005/Atom' xmlns:gd='http://schemas.google.com/g/2005'>
          <category scheme='http://schemas.google.com/g/2005#kind' 
              term='http://schemas.google.com/contact/2008#contact'/>
          <title>My Mail Contact</title>
          <gd:email rel='http://schemas.google.com/g/2005#work' primary='true' address='saurabh.agrawal@gmail.coom'/>
        </entry>