google-contacts-api

import contacts from gmail/hotmail/yahoo to php

ぃ、小莉子 提交于 2019-12-06 03:02:57
i would like to import contacts from gmail/hotmail/yahoo to my php applications just like those found in social network. i've read how gmail does it but im still not very clear about it. it says i would need to do a http request like this https://www-opensocial.googleusercontent.com/api/people/@me/@self but how should i send this info?? i tried running this on the browser and it returns "Cannot make anonymous request without explicit user ID in the URL" so how can i pass the correct user ID then?? for yahoo, the Yahoo! Address Book API is deprecated and now we should use Contacts API. have

NoSuchMethodError : google common ImmutableSet.copyOf(..)

夙愿已清 提交于 2019-12-05 13:58:47
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 java.lang.NoSuchMethodError: java.lang.NoClassDefFoundError: Could not initialize class com.google.gdata.client.contacts.ContactsService . and this exception follows : . java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;: . . com.google.apphosting.runtime.jetty

Google contacts gdata (Java) fails on No parser for content type:application-xml[application/xml]

て烟熏妆下的殇ゞ 提交于 2019-12-05 12:21:51
Recently, a 2 days ago we started to experience exception in google gdata client in Java, when trying to access contacts (feed : /m8/feeds/contacts/default/full). The exception is : com.google.gdata.util.ParseException: No parser for content type:application-xml[application/xml] at com.google.gdata.client.Service.parseResponseData(Service.java:2142) at com.google.gdata.client.Service.parseResponseData(Service.java:2098) at com.google.gdata.client.Service.getFeed(Service.java:1136) at com.google.gdata.client.Service.getFeed(Service.java:1077) at com.google.gdata.client.GoogleService.getFeed

People API of google versus contacts API

自古美人都是妖i 提交于 2019-12-05 10:43:10
While trying to fetch contacts using google account of user , I am facing some issues after using people API.It only returns few email addresses out of all listed ones.Access token and all scopes have been set correctly. Code for following : People peopleService = new People.Builder(httpTransport, jsonFactory, credential) .build(); ListConnectionsResponse response = peopleService.people().connections().list("people/me") .setPageSize(500).setSortOrder("FIRST_NAME_ASCENDING") .setAccessToken(tokenResponse.getAccessToken()) .setAlt("json") .setRequestMaskIncludeField("person.names,person

Google API Contacts v.3, PHP: add a contact to the group

你说的曾经没有我的故事 提交于 2019-12-05 01:08:09
问题 I successfully managed to create a new contact with cURL, but when I want to add group membership for this contact, I get 400 error. I've read this docs and made the same request, but it didn't work. What am I doing wrong? Thanks for any ideas! This is how I create an XML with group information: $doc = new DOMDocument('1.0', 'UTF-8'); $doc->formatOutput = true; $entry = $doc->createElement('entry'); $entry->setAttribute('gd:etag', $etag); $doc->appendChild($entry); $category = $doc-

“My Contacts” group google contacts

旧时模样 提交于 2019-12-04 19:19:52
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 Google 2.0 Contacts documentation . 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. Currently the response that I get does not have a gContact:systemGroup tag

Google Contacts Broadcast/Push/Notification/Hook API

我的未来我决定 提交于 2019-12-04 11:19:25
I am looking for a way to receive notifications / broadcasts from google when a contact on googles side is edited, deleted or created. I looked through the Google Contacts API documentation but could not find anything.. I think there must be a way, e.g. Android for sure does not poll for changes. The Google Contacts API documentation doesn't mention anything about a web hook like the Google Calendar API has. I think that what you might have to do is the following: Set up a database to store your contact's info. Create a PHP script which will query Google Contacts for the contact's updated info

Google Contacts API query for n popular contacts

时间秒杀一切 提交于 2019-12-04 10:19:00
is there are way to query only n popular contacts ? for example something like: http://www.google.com/m8/feeds/contacts/default/full?alt=json&max-results=50&popular=true that will return only the 50 popular contacts. (like in gmail contacts there is 20 popular contacts). if there is isn't a way to query that, is there a way to check which of all contacts sre most popular. popular= more email activity with them then with others. thanks. I have struggled with this for quite sometime. Internet research suggests that this was removed from the API a few years ago, mostly since the "Most Contacted"

Google Contacts API: No 'Access-Control-Allow-Origin' header is present on the requested resource

点点圈 提交于 2019-12-04 03:55:33
问题 After working perfectly for about a month, I'm now getting a No 'Access-Control-Allow-Origin' header is present on the requested resource. Here's a simplified version of the ajax request. var feedurl = "https://www.google.com/m8/feeds/contacts/EMAIL/full?oauth_token=TOKEN&max-results=50&alt=json&v=3.0"; $.ajax({ url: feedurl, dataType: "json", success: function(data) { console.log(data); //do stuff } }); Changing dataType to jsonp doesn't change anything. In the google api console I have

With Google API Client, how to create client

陌路散爱 提交于 2019-12-04 00:17:50
I'm working to use the Google API Client: https://github.com/google/google-api-ruby-client Specifically, I want to access Google Contacts via the Google API client using the following google_contacts_api.rb : https://gist.github.com/lightman76/2357338dcca65fd390e2 I am trying to use google_contacts_api.rb like so (x is intentional and is actually the correct keys): require './lib/google_contacts_api.rb' auth = User.first.authentications.first client = OAuth2::Client.new('x', 'x', :site => 'https://accounts.google.com') oauth2_object = OAuth2::AccessToken.new(client, auth.token) x = ContactList