google-contacts-api

“NetworkError: 405 Method Not Allowed” on Google contact delete

依然范特西╮ 提交于 2019-12-08 03:02:29
问题 I am trying to delete a Google Contact through javascript. As per v3 of Google Contacts api I have defined: scope to https://www.google.com/m8/feeds And authenticated user, and got the access_token. And as per the v3 documentation on this page, trying to delete a contact like this: $.ajax({ url: 'https://www.google.com/m8/feeds/contacts/default/full/temp123info@gmail.com?access_token=ya29.AHES6ZQoqUgoYmDzXyo-WsSlKv1-_2D_HzmXuH-wBuTR3e1ADxO0VWM', type: 'DELETE', success: function(res) {

import contacts from gmail/hotmail/yahoo to php

大城市里の小女人 提交于 2019-12-07 14:42:32
问题 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

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

人走茶凉 提交于 2019-12-07 09:21:13
问题 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

NoSuchMethodError : google common ImmutableSet.copyOf(..)

前提是你 提交于 2019-12-07 07:33:34
问题 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

Google Contacts API - failing to refresh access token

流过昼夜 提交于 2019-12-07 05:48:34
问题 We use Google Contacts API with OAuth2: credential = new GoogleCredential.Builder().setTransport(new NetHttpTransport()) .setJsonFactory(new JacksonFactory()) .setClientSecrets(OAuth2ClientId(), OAuth2ClientSecret()) .addRefreshListener(new CredentialRefreshListener() {...}); myService = new ContactsService("My-App"); myService.setOAuth2Credentials(credential); and quite regularly we receive '401 Unauthorized' response that the GData library can't handle. AuthenticationException throws NPE

People API of google versus contacts API

有些话、适合烂在心里 提交于 2019-12-07 05:06:09
问题 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

“NetworkError: 405 Method Not Allowed” on Google contact delete

◇◆丶佛笑我妖孽 提交于 2019-12-06 14:31:30
I am trying to delete a Google Contact through javascript. As per v3 of Google Contacts api I have defined: scope to https://www.google.com/m8/feeds And authenticated user, and got the access_token. And as per the v3 documentation on this page , trying to delete a contact like this: $.ajax({ url: 'https://www.google.com/m8/feeds/contacts/default/full/temp123info@gmail.com?access_token=ya29.AHES6ZQoqUgoYmDzXyo-WsSlKv1-_2D_HzmXuH-wBuTR3e1ADxO0VWM', type: 'DELETE', success: function(res) { console.log(res); }, error: function(error) { console.log(error); } }); Getting this error: "NetworkError:

Google Contacts Api Getting contacts in a certain group. (The my contacts group)

天大地大妈咪最大 提交于 2019-12-06 07:33:25
So I can get all my contacts with this: https://www.google.com/m8/feeds/contacts/default/full?access_token=mytoken&alt=json&v=3 And all my groups with this: https://www.google.com/m8/feeds/groups/default/full?access_token=myToken&alt=json&v=3 And I can get the actual contact group for "myContacts" with this: https://www.google.com/m8/feeds/groups/default/base/6?access_token=mytoken&alt=json&v=3 But how can I get all the contacts in the myContacts group? The previous query just gives me the actual group. You can use the below URI in order to get the contacts of a specific group. href="http:/

Google Contacts API query for n popular contacts

好久不见. 提交于 2019-12-06 05:56:15
问题 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. 回答1: I have struggled with this for quite sometime.

Google Contacts Broadcast/Push/Notification/Hook API

守給你的承諾、 提交于 2019-12-06 04:34:32
问题 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. 回答1: 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