Questions tagged [google-contacts-api]

The Google Contact API allows users to programmatically interact with the Google Contacts application, which is a web based contact management application by Google. Use this tag for programming questions related to using the Google Contacts API. General computing questions about using the Google Contacts web application is off topic for Stack Overflow.

Google contacts is a web application which allows users to save their contats. This data can be shared across a users devices. For questions related to the Web application please post on Web apps stack exchange as all Google contact related questions will likely be non programming related and there for off topic for Stack Overflow

Google Contacts API

The Google Contacts API allows client applications to view and update a user's contacts. Contacts are stored in the user's Google Account; most Google services have access to the contact list.

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

For questions related to the Google contacts api please use googlecontactsapi tag.

1100 questions
5
votes
1 answer

How to get email_ids only (not G+ id) from Events API

I'm using Google APIs to get the user's calendar events and contacts. While fetching the contacts, I get the response in the following manner:- [ { 'phones': [], 'image_path': '', 'id': 'ID', 'emails':…
Praful Bagai
  • 16,684
  • 50
  • 136
  • 267
5
votes
2 answers

C# application - Read Google Contacts

Since Google stopped support for their older Auth, and now we have to use oAuth 2, our simple desktop application can no longer read contacts from my google account. Fine - i understand this, however this new oAuth 2 is extraordinarily…
Conrad de Wet
  • 477
  • 6
  • 15
5
votes
2 answers

How to import google contacts in android (programatically)?

Can any body suggest a way, how to extract contacts from google to the android app? Thanks! Below is my code and I'm getting runtime error at line number 57. To be specific it shows exception in AsyncTask. package com.example.isan.contacts; import…
Isan Sahoo
  • 384
  • 2
  • 10
5
votes
1 answer

Multiple Google access permissions for a desktop application

I'm writing a desktop application in C# that should be able to access all users on a Google Apps "account" an retrieve calendar-events for each user. I have added the Calendar API and the Admin SDK to my "project". Both methods (below) works fine on…
Christian Tang
  • 1,450
  • 4
  • 19
  • 30
5
votes
3 answers

get token, store it, refresh it if expired using oauth2 gem in ruby

I am working on script to get google contacts using google contacts api gem. I am able to access the token successfully using this code: require 'rubygems' require 'launchy' require 'oauth2' require 'googlecontacts' require 'google_contacts_api' #…
ben
  • 6,000
  • 5
  • 35
  • 42
5
votes
1 answer

Google Contacts API - failing to refresh access token

We use Google Contacts API with OAuth2: credential = new GoogleCredential.Builder().setTransport(new NetHttpTransport()) .setJsonFactory(new JacksonFactory()) .setClientSecrets(OAuth2ClientId(), OAuth2ClientSecret()) …
Alexey
  • 556
  • 1
  • 5
  • 18
5
votes
2 answers

Google Contacts API v3: how to use full text query?

I cannot seem to get a search of Google Contacts using a query parameter to work. I can successfully authenticate the user, get a list of Contacts Groups, and get a list of contacts within a group, but cannot get a search to work. From the…
threecee
  • 53
  • 4
5
votes
2 answers

Google Contacts API - getting image

I'm having a simple problem while retrieving user's contact's images. So I make a request to $url = 'https://www.google.com/m8/feeds/contacts/default/full?alt=json&max-results=9999&oauth_token=' . $accessToken; And then I get huge JSON from which…
Adrian
  • 1,499
  • 3
  • 19
  • 26
5
votes
1 answer

NoSuchMethodError : google common ImmutableSet.copyOf(..)

I upgraded my Google app Engine app from 1.7. to 1.8. + Java 7 and i leveled up all API libraries to be up-to-date. I am getting strange exceptions during app inicialization in GAE container : Constructor threw exception; nested exception is…
Martin V.
  • 3,560
  • 6
  • 31
  • 47
5
votes
3 answers

accessing google contacts with google api javascript client - how?

I am implementing a client side only webapp based on the google api javascript library. Unfortunately, this library doesn't support contacts. Or does it? Is it an undocumented feature? If not, is there another working way to access contacts? E.g.…
David Graf
  • 1,152
  • 2
  • 13
  • 24
5
votes
3 answers

Accessing Google Contacts Api via OAuth 2.0 and private key aka Service Account

I am currently implementing access to Google Contacts via OAuth 2.0 and a so called Service Account. The service account is generated for an ordinary user like "My.Name@gmail.com". The code to generate the OAuth 2.0 credentials is: public static…
5
votes
0 answers

Automatically adding email addresses from Form to Contact Group

I am in charge of an upcoming student conference and have created a registration form on Google Drive where one of the 'questions' asked was of the email address of the registrant. In Google Drive all the email addresses are collated in one…
4
votes
2 answers

Is there any way to get Google People API resource ID from Google Contacts contact Id?

We store the user's contactId in our database and use it to fetch/edit/delete contacts when the user requests from our app. Now that Google Contacts API is to be sunset, we need to call Google People API for these actions using resource id. Is there…
Ranjani
  • 1,015
  • 1
  • 9
  • 15
4
votes
0 answers

Easiest way to access Google Contacts on Android

I need to basically create an Android app which accesses the contact information of a fixed Google account. If I'm not mistaken, it seems the GData API doesn't work on Android, while the Portable Contacts API doesn't support ClientLogin (which seems…
Sng Swee Keat
  • 73
  • 1
  • 4
4
votes
1 answer

Google Contacts failing to import correctly

Good day, I am trying to import a .csv file into Google Contacts. The import works fine except that "Phone" is saved on the notes field instead of the Phone Field. I need help get this right.