google-contacts-api

Access Google Contacts API on Ruby

筅森魡賤 提交于 2019-11-29 11:10:38
I'm struggling to access the Google Contacts API. First I tried the google-api-ruby-client gem but it turned out that it does not support the Contacts API . Next shot was the google_contacts_api gem but I struggle to get a oauth_access_token_for_user with the oAuth2 gem . When following the oAuth2 instructions I don't know what to put in authorization_code_value and Basic some_password . I tried the following: require 'oauth2' client = OAuth2::Client.new(ENV['GOOGLE_CLIENT_ID'], ENV['GOOGLE_CLIENT_SECRET'], :site => 'http://localhost:9292') => #<OAuth2::Client:0x007fcf88938758 @id="blabla.apps

Get Userinfo from Oauth2 Google Contacts API

自闭症网瘾萝莉.ら 提交于 2019-11-29 10:27:29
Error which i am getting: com.google.api.client.googleapis.json.GoogleJsonResponseException: 401 Unauthorized { "code" : 401, "errors" : [ { "domain" : "global", "location" : "Authorization", "locationType" : "header", "message" : "Invalid Credentials", "reason" : "authError" } ], "message" : "Invalid Credentials" } Below code, i am using: GoogleCredential credential = new GoogleCredential.Builder() .setTransport(this.TRANSPORT).setJsonFactory(this.JSON_FACTORY) .setClientSecrets(Constants.CLIENT_ID, Constants.CLIENT_SECRET).build(); credential.setAccessToken(tokenResponse.getAccessToken());

Exception while adding contact in google.Internal server Error

 ̄綄美尐妖づ 提交于 2019-11-29 03:36:27
问题 We have been getting the following error from today morning onwards while inserting the contacts through Google API from java. Please find the stack trace below Exception while adding contact in google.... com.google.gdata.util.ServiceException: Internal Server Error A temporary internal problem has occurred. Try again later. at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:624) at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse

Getting google contacts with javascript

懵懂的女人 提交于 2019-11-29 02:24:09
How can I get the contacts of a user that has already authenticated using OAuth 2, using Javascript? The authentication is already made, so I need only how to get the contact list. I have read that Google Contacts Api 1 and 2 had some examples for Javascript codes, but i can't find anything on the Google Contacts V3 site. Could it be that this can no more be done? Google Contacts API v3 does not provide a JavaScript SDK. However, if you want to handle the contact importing on the client-side you can do it with an ajax call : var clientId = 'XXX'; var apiKey = 'XXX'; var scopes = 'https://www

GoogleWebAuthorizationBroker is not working from IIS Host

♀尐吖头ヾ 提交于 2019-11-28 14:45:54
I am using the following code to authenticate to Google using the Google .Net client library. public static void auth() { string clientId = "xxxxxx.apps.googleusercontent.com"; string clientSecret = "xxxxx"; string[] scopes = new string[] { "https://www.googleapis.com/auth/contacts.readonly" }; // view your basic profile info. try { // Use the current Google .net client library to get the Oauth2 stuff. UserCredential credential = GoogleWebAuthorizationBroker.AuthorizeAsync(new ClientSecrets { ClientId = clientId, ClientSecret = clientSecret } , scopes , "test" , CancellationToken.None , new

Google contacts api on android

此生再无相见时 提交于 2019-11-28 09:06:53
问题 I've been at this for days and im getting confused. I've read in many places that the java client google provides "wont work on android", and it doesn't. Could anybody point me in the right direction? public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ContactsService service = new ContactsService("my_app_name"); URL feedUrl = null; try { feedUrl = new URL("https://www.google.com/m8/feeds/contacts/default/full"); } catch

Access Google Contacts API on Ruby

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 04:43:28
问题 I'm struggling to access the Google Contacts API. First I tried the google-api-ruby-client gem but it turned out that it does not support the Contacts API. Next shot was the google_contacts_api gem but I struggle to get a oauth_access_token_for_user with the oAuth2 gem. When following the oAuth2 instructions I don't know what to put in authorization_code_value and Basic some_password . I tried the following: require 'oauth2' client = OAuth2::Client.new(ENV['GOOGLE_CLIENT_ID'], ENV['GOOGLE

Get google plus user friends

十年热恋 提交于 2019-11-28 00:11:08
In the Google+ API there is a method to search for public friends. However, I do not see a way to get user friends. Is there any way to get the Google+ user's friends? There currently is no API access to circles and friends in Googel+. There is an open feature request you can star to get notified if an API method is added. Alternatively you can use the Google Contacts API . This has the downside of being a scarier permission dialog because there is not a read only permission. 来源: https://stackoverflow.com/questions/10820536/get-google-plus-user-friends

Retrieving information about a contact with Google People API (Java)

霸气de小男生 提交于 2019-11-27 22:31:07
I am using an example of recently released Google's People API from here . I have extended a sample a bit to display additional information about the contact such as an email address and a phone number. The code that should do the job is presented below. public class PeopleQuickstart { ... public static void getPersonInfo(Person person){ // Get names List<Name> names = person.getNames(); if(names != null && names.size() > 0) { for(Name personName: names) { System.out.println("Name: " + personName.getDisplayName()); } } // Get email addresses List<EmailAddress> emails = person.getEmailAddresses