For use with: All current Native Instruments software products.
The Google Contacts API allows client applications to view and update a user's contacts. OAuth 1.0 was officially deprecated on April 20, 2012 and stopped being supported on May 5, 2015. Requests to the Google Contacts API for non-public user data must be authorized by an authenticated user.
For general Google Contacts API reference information, see the reference guide. Here's the OAuth 2.0 scope information for the Google Contacts API: To request access using OAuth 2.0, your application needs the scope information, as well as information that Google supplies during application registration (such as the client ID and/or the client secret).
This section contains some information to help you get started with the Google Contacts API. If you already have a test account with a project registered in the API Console, then you're all set; you can visit the Google Contacts API user interface to set up, edit, or view your test data. Contacts Service my Service = new Contacts Service("YOUR_APPLICATION_NAME"); // Authorize the service object. The Google APIs client libraries can handle some of the authorization process for you.
Your client application can use the Google Contacts API to create new contacts, edit or delete existing contacts, and query for contacts that match particular criteria This document is intended for programmers who want to write client applications that can interact with Google's contact lists. The following general process applies to all application types: If your public application uses scopes that permit access to certain user data, it must pass review.
Elements generated by the API are shown in bold in the output.
def Print All Contacts(gd_client): feed = gd_client.
import com.google.gdata.client.*; import com.google.gdata.client.contacts.*; import com.google.*; import com.google.contacts.*; import com.google.extensions.*; import com.google.*; import They are available for a variety of programming languages; check the Libraries and Samples page for more details. public static Contact Entry create Contact(Contacts Service my Service) import import import gdata.contacts.client import gdata.def create_contact(gd_client): new_contact = gdata.
import import import gdata.contacts.client import gdata.# ... Contacts Client(source='YOUR_APPLICATION_NAME') # Authorize the client. The token also identifies your application to Google. You must register your project in the Google API Console and enable the Contacts API service in order to use OAuth 2.0.