google-contacts-api

How to create a new contact via Google Contacts API?

喜欢而已 提交于 2019-12-24 06:58:13
问题 I am creating a new contact as described in Google Contacts API . Specifically, I do a POST to https://www.google.com/m8/feeds/contacts/default/full . The content that I POST is taken directly from Google Contacts API document and also copied below. The problem is Google puts the newly created contact under "Other Contacts". That is if I open https://contacts.google.com/ in the browser, the new contact is not shown. I have to go to the sidebar in the left, click "More" and then click "Other

405 Error with POST request (AngularJS $http)

£可爱£侵袭症+ 提交于 2019-12-24 02:38:05
问题 I want to do a post request on Google Contacts API with AngularJS $http. I tried to do this : var config = { headers: { // "Content-Type": "application/json", "Authorization": "Bearer " + gapi.auth.getToken().access_token, "GData-Version": "3.0" } } var data = { "test": "test" } $http.post('https://www.google.com/m8/feeds/contacts/default/full/', data, config); But it returns " XMLHttpRequest cannot load https://www.google.com/m8/feeds/contacts/default/full/. Response for preflight has

Google Global Address List for Domain limited to 250 results

ぃ、小莉子 提交于 2019-12-24 01:16:28
问题 I'm trying to query Google Global Address List for a specific domain, being led by this answer here (Specifically the answer by Jay Lee). It's all well and good and works perfectly in Google's OAuth Playground, however it seems to be limited to 250 users. Given that this feature seems completely undocumented, and that I can't tell by looking at their github repo (specifically this file), does anyone know how to query for the next 250 users or how to set the number of results? Thank you! 来源:

Google GCM Deprecation - Old Mobile Clients with GCM Token

删除回忆录丶 提交于 2019-12-23 15:56:42
问题 There are lots of Articles, Blogs, Question/Answers about Migration to FCM from GCM. Although not very clearly documented is what is going to happen with Older Clients which uses GCM tokens (either old or newly obtained) after April 2019. My questions are : 1) After April 2019, "most" . GCM services will be stopped.As per google they have mentioned "most". It is not explicitly mentioned what are going to be stopped and what would continue working. Any pointer on this would help. 2) What

import contacts from multiple accounts in gmail

我的梦境 提交于 2019-12-23 05:06:41
问题 I have a rails application and i am using omnicontacts gem to import contacts from yahoo, gmail, and outlook.Its working fine.But once i import contacts from any account say of gmail, and tries to import contacts from another account it does not ask me to login using another account for importing contacts from it. Here is my omnicontacts initializer .Please help, I can add more info if needed. config/initializers/omnicontacts.rb Rails.application.middleware.use OmniContacts::Builder do

Retrieve one contact with python gdata.contacts.client

会有一股神秘感。 提交于 2019-12-23 03:13:11
问题 I try to retrieve a contact with gdata.contacts.client : Auth : class ModifyMe(webapp.RequestHandler): @login_required def get(self): """print contacts""" current_user = users.get_current_user() access_token_key = 'access_token_%s' % current_user.user_id() token = gdata.gauth.ae_load(access_token_key) gcontacts_client = gdata.contacts.client.ContactsClient(source = SETTINGS['APP_NAME']) gcontacts_client = token.authorize(gcontacts_client) According to API documentation, i tried this : contact

With Google API Client, how to create client

☆樱花仙子☆ 提交于 2019-12-21 07:45:48
问题 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 =>

With Google API Client, how to create client

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 07:44:45
问题 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 =>

Not able to fetch Google Contacts by calling API in Swift

那年仲夏 提交于 2019-12-20 06:11:14
问题 I am trying to fetch Google Calendar events and Google Contacts to my Swift (iOS) application. I am able to login successfully to Google sign-in and able to fetching the Calendar events too. But, while trying to fetch Google Contacts, its throwing 403 error, but, I have already Enabled the API to my project in google developers console. private let scopes = ["https://www.googleapis.com/auth/calendar.readonly","https://www.googleapis.com/auth/plus.login","https://www.googleapis.com/auth/plus

Add contacts to Google Contacts' main Contacts list (not hidden)

别来无恙 提交于 2019-12-20 04:56:07
问题 I'm using the GAS code bellow to add a new contact into Google Contacts (https://contacts.google.com/): var contact = ContactsApp.createContact('Bbbb', 'Cccc', 'mymail@mails.com').addUrl(ContactsApp.Field.WORK_WEBSITE, 'https://sites.google.com/site/diccionarioie'); The code works perfectly but for a single detail: it adds the new contact to a hidden list and not to the main or visible «Contacts» list. I know it works because when I use the lookup box to search for the newly created contact