google-contacts-api

Getting “Net::HTTPError: Forbidden (403)”

老子叫甜甜 提交于 2019-12-13 06:28:53
问题 While syncing contacts (fetching contacts from Google or updating a contact from Google), I am getting Net::HTTPError: Forbidden (403) . Would like to know in which cases this exception can arise. Any url that explains this error would help us to debug this issue and analyze different scenarios in which this error can be raised. Overview of our application's google integration: Our application is built on Ruby on Rails (3.2.18). We are using google-contacts gem (https://github.com/varunlalan

Get Google contacts via AuthSub c#

有些话、适合烂在心里 提交于 2019-12-13 05:24:29
问题 Does any one have a working example of getting google contact via AuthSub in c# I have tried this url , but i was not able to complete it. 回答1: Here is a piece of code from one of my projects: public class GoogleContactsProvider : IContactProvider { #region IContactProvider Members /// <summary> /// Gets the contacts list form the contact provider. /// </summary> /// <returns></returns> public EntityCollection<IContactItem> GetContactsList() { EntityCollection<IContactItem> collection = new

Google Contacts API get phone number (PHP)

时光怂恿深爱的人放手 提交于 2019-12-12 21:28:17
问题 I'm using the Google Contacts API and I'm able to extract names and email addresses but I'd like to also get profile pictures and phone numbers. I'm using PHP and here's my code while authenticating: //if authenticated successfully... $req = new Google_HttpRequest("https://www.google.com/m8/feeds/contacts/default/full"); $val = $client->getIo()->authenticatedRequest($req); $doc = new DOMDocument; $doc->recover = true; $doc->loadXML($val->getResponseBody()); $xpath = new DOMXPath($doc); $xpath

Retrieve google contact based on contact Id

穿精又带淫゛_ 提交于 2019-12-12 20:31:00
问题 When I issue a contacts request to get all of a user's contacts I get contacts Id's of the form: http://www.google.com/m8/feeds/contacts/sometestaccount%40gmail.com/base/4f822c758a541b6b Reading the google contacts api 3.0 I was a bit confused on what uri should I use to delete a contact. Doing: var cr = new ContactsRequest(settings); var uri = new Uri("http://www.google.com/m8/feeds/contacts/sometestaccount%40gmail.com/base/4f822c758a541b6b"); var contact = cr.Retrieve<Contact>(uri); cr

Google contacts api (gdata) syncs low resolution photos

久未见 提交于 2019-12-12 14:45:20
问题 I'm using google contacts api (gdata) to set a contact's photo in google contacts. I'm using fiddler and I see that the request is sent according to Google Contacts Examples but the photo downloaded back from google is always 96x96. The code I'm using to update and download the photo is: public void UpdateUserPhoto(Contact contact, Stream photo) { _contactsRequest.SetPhoto(contact, photo); } public static void DownloadPhoto(ContactsRequest cr, Contact contact) { if (contact.PhotoEtag == null)

How to use Google Contacts API in meteor?

北城余情 提交于 2019-12-12 08:17:07
问题 I am using meteor to create a webpage with a dropdown list of Google Groups to select from and once selected, the Google contacts will be displayed. I am using HTTP.call POST to Google's API and testing with the accessToken from mongoDB but when I use that token after some time it expires. I looked into implementing an authentication flow but it is getting very complicated since there is no sample code on Google for meteor. I am new to nodeJS, Javascript and Meteor. Am I going about this the

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

纵然是瞬间 提交于 2019-12-12 08:09:59
问题 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 GoogleCredential getCredentials() throws GeneralSecurityException, IOException { GoogleCredential credential = new GoogleCredential.Builder().setTransport(HTTP_TRANSPORT) .setJsonFactory(JSON_FACTORY) .setServiceAccountId(SingleUserCredentials.SERVICE

How to import Google contacts in ASP.NET MVC (no third party please)

一个人想着一个人 提交于 2019-12-12 05:39:29
问题 I have Used a API for importing the contacts of GMail. The code is something like this: public static DataTable GetGmailContacts(string App_Name, string Uname, string UPassword) { Log.LogDebug(string.Format("SettingsController.cs-Importing Contacts for email={0}, password={1} from gmail server", Uname, UPassword)); DataTable dt = new DataTable(); DataColumn C2 = new DataColumn(); C2.DataType = Type.GetType("System.String"); C2.ColumnName = "EmailID"; try { dt.Columns.Add(C2); RequestSettings

Can't get the list of accounts using Google Contacts API & OAuth 2.0

时光毁灭记忆、已成空白 提交于 2019-12-12 03:41:09
问题 I'm trying to retrieve a Google user's contacts list. This getContacts() is called in the doInBackground() of an AsyncTask. I have -at this point- already received a token. I based my self on this codeLab sample : https://codelabs.developers.google.com/codelabs/appauth-android-codelab/#0 I'm modifying the point n°10 of this tutorial so trying to fetch user's contact list instead of the user's personal info ( < which is working) private List<ContactEntry> getContacts() { ContactsService

What is the ID of the Starred contacts group in the google contacts api

断了今生、忘了曾经 提交于 2019-12-12 02:23:50
问题 Is the starred group even a real group? Can you access it with the group api? This is the closest I have gotten: http://www.google.com/m8/feeds/contacts/group/default?access_token=ya29.owFYVWvQ8nnKbxH4pdeB3gJ8-kME1cL0LcHCKQ3x7qhs7bbFfB2IdPVzOhqZNbtNkDQCu3f5by8ZRQ&group=http://www.google.com/m8/feeds/groups/jonathan.carl.odonnell%40gmail.com/base/6 回答1: The group is a real, non-system group whose ID changes from account to account. When I accessed the group using the google contacts API