Menu
  • HOME
  • TAGS

Pushing base64 encoded image to Google Contacts with Python

python,google-api,base64,google-contacts

Python offers you in-memory file-like objects. On Python 2, use cStringIO.StringIO (with a fallback to StringIO.StringIO in the rare cases the C-optimised version is missing): try: from cStringIO import StringIO except ImportError: from StringIO import StringIO image_data = your_image_data.decode('base64') image_file = StringIO(image_data) a.ChangePhoto( image_file, contact_url, content_type='image/jpg', content_length=len(image_data)) I do assume...

Get all contacts from Google Contacts API version 3.0

python,google-app-engine,oauth-2.0,google-contacts

The contacts feed returns the first 25 contacts when no query parameters are provided. Add the start-index and max-results parameters to adjust this. https://developers.google.com/google-apps/contacts/v3/reference#Parameters There should also be page info returned in the result indicating how many contacts are on the page, which page it is, and how many more...

Google Contacts API nodejs

node.js,google-contacts,google-api-nodejs-client

According to Google NodeJS API for Google Contacts API, the links below maybe could help you out: https://github.com/jimib/nodejs-google-contacts https://github.com/elentok/gcontacts https://github.com/mattnull/node-googlecontacts...

Google Contacts API OAuth2 Issue

c#,google-api,google-contacts,google-data-api,google-oauth2

I solved this problem, this is my code: public class BESGoogleContactsService { private const string serviceAccountEmail = "[email protected]"; private const string serviceAccountCertPath = "BesSSO-123.p12"; private const string serviceAccountCertPassword = "notasecret"; private const string Email = "[email protected]"; public BESGoogleContactsService() { var certificate = new X509Certificate2(serviceAccountCertPath, serviceAccountCertPassword, X509KeyStorageFlags.Exportable); ServiceAccountCredential credential = new...

Firefox WON'T enter safe mode

firefox,google-contacts,safe-mode

This turned out to be a compound problem. The not entering safe mode problem was solved by reinstalling FF 36.0. This is worrisome, but I'll take it for now. I'll update if this part of the problem resurfaces. The problem with gmail contacts has something to do with an Addon...

Access my own Google Contacts using OAuth2 in Python

python,oauth-2.0,google-contacts,google-oauth2

Not sure if this will help but there is oauth2 parts in this that I use to bring down csv of google spreadsheets using python https://github.com/burnash/gspread

Is it possible to use AuthorizationCodeMvcApp for authorization in google contacts API access?

oauth-2.0,google-calendar,google-oauth,google-contacts,google-api-dotnet-client

Unfortunately Google Contacts supports the old GData protocol and the API doesn't have an equivalent library in the new Google APIs client library for .NET. But... I also have good news, take a look in this thread - How to create a ContactsService using Google Contact API v3 with OAuth...

How can i change the Birthday in a Google GMail Contact?

asp.net,vb.net,google-contacts

The problem is that you are writing your date like this: Dim d As New Date d = CDate(m.DateNaissance) contact.ContactEntry.Birthday = d.Year & "-" & d.Month & "-" & d.Day The Day and Month properties of the Date type are numeric. That means that if either one is less than...

ContactsRequest.Insert(feedUri, newEntry) sometimes fails with System.Net.ProtocolViolationException

c#,gdata,google-contacts

I had the same error and the problem was that the token had expired. You can confirm that using fiddler. I had a 401 error. Once I refreshed the token, everything worked fine. Hope that help.

How to access contacts API with Service Account

google-contacts,google-apps-marketplace,service-accounts

Well I got no response anywhere on this so I can only assume that the standard client libraries don't have support for this. I have come up with a workaround based on the following post for email access. http://www.limilabs.com/blog/oauth2-gmail-imap-service-account You will need to follow his post and note the following:...

Getting “If-Match or If-None-Match header or entry etag attribute required” errors when batch deleting contacts

python,google-api,google-contacts

Copying answer from the Google code ticket. Basically, you need to patch the client's Post method to modify the request feed slightly. Here's one way to do it without directly modifying the library source: def patched_post(client, entry, uri, auth_token=None, converter=None, desired_class=None, **kwargs): if converter is None and desired_class is None:...

How to authenticate a java application for the Google Contacts API?

java,google-oauth,gdata,google-contacts

First question: Am I correct in assuming that the only supported authentication now is OAuth2? Yes So... now what? The closest analogy to a username-password is a refresh token (which is simply a string). IE:- If your app has a refresh token, it can, at any time, access the resources...

Google OAuth2 - tokens, on-line, offline, adding scopes incrementally

access-token,google-contacts,offline-mode

For your questions: a) have you used the parameter "include_granted_scopes"? as mentioned here: https://developers.google.com/accounts/docs/OAuth2WebServer#incrementalAuth b) When you request an offline access token, the response contains the access token and refresh token. so you can refresh the access token after it expires without having the user grant the permissions again. online...

Google Apps Script: Retrieve Date from Spreadsheet and write to Contacts

google-apps-script,google-contacts

There are lots of ways to approach, as I see a switch is the easiest, there's no one-liner though, as there's no month name built into Javascript: var month = birthdate.getMonth(); switch(month){ case 0: month = ContactsApp.Month.JANUARY; break; case 1: month = ContactsApp.Month.FEBRUARY; break; [...] case 11: month = ContactsApp.Month.DECEMBER...

What is the correct mechanism to authenticate to Google in a standalone Python script?

python,google-oauth,gdata,google-contacts

Can someone please suggest the proper way to do this in a standalone script? Or am I out of luck and there's no mechanism to accomplish this any more? There's no mechanism any more like the one you are using. You will have to set up a Cloud Developer...

Google contacts: is there a way to use services rather than gdata?

google-api,google-calendar,google-contacts,google-api-python-client

The contacts API still uses the old format (GData), you will need to have two separate code. This should not be an issue if you create a layer on top of Google's libraries : just write contacts and calendar modules that hide all the implementation details (old or new API)....

get contacts in a group google contacts api v3

google-api-php-client,google-contacts

I found the solution I had to add group={groupId} to the query....

Google contacts using OAuth 2 on Android

android,google-api,google-oauth,google-contacts

I got Solution from this link https://developers.google.com/accounts/docs/OAuth2WebServer. After your application obtains an access token, you can use the token to make calls to a Google API on behalf of a given user account or service account. To do this, include the access token in a request to the API by...

How to get Google contacts without access token?

node.js,passport.js,google-contacts

Here I got my answer. As I mentioned I am using passport.js to log in with Google And during log in process passport provides access token and refresh token by default refresh token will be null. If you want to get refresh token you need to pass parameter accessType:offline during...

Google Contacts V3, retrieving GMail contacts only

google-contacts

For retrieving all the contacts from Contacts tab in Gmail, you have to specify the group value(Group) in the query as mentioned here and also for retrieving just the contacts in Contacts tab in Gmail, the group value would be just Contacts as shown here Hope that helps!...

Google Contacts API - Delete Contact (400 Error)

php,google-contacts,google-shared-contacts

I received an answer from Manuel on his forum. Here is the response. api_url = 'https://www.googleapis.com/some-google-api-url'; $options = array( 'RequestHeaders'=>array( 'If-Match'=>'if match value here', 'FailOnAccessError'=>true ); $success = $client->CallAPI($api_url, 'DELETE', array(), $options, $results); ...

CakePHP GmailOath Retrieve Contacts

cakephp,oauth,google-contacts

Found out the solution, Looks like the newly generated Client ID and Client Secret have already phased out for older version of API. The only way to make this works is by implementing Google Contact APIv3 and using OAuth2. Hope this help the rest who having the same issues....

Google Contacts API with Yii2

yii2,google-contacts

Your code is almost correct: require_once 'GoogleClientApi/autoload.php'; $client = new \Google_Client(); The "\" is needed to indicate the class exists in the global namespace, as you are - in that piece of code - under the app\controllers namespace....

Multiple Google access permissions for a desktop application

c#,google-calendar,google-apps,google-contacts

Eureka! I figured out, how to solve the problem, and it was actually quite simple. The solution was, to "merge" the methods. This meant, that I only have to check the credentials once, using the access token. I also added directory to the scope-array. static string[] Scopes = { CalendarService.Scope.CalendarReadonly,...

Delete a Single Gmail contact using PHP

php,gmail-api,google-contacts

It was because maximum contact was reached and query was not processing further, Now I have set the maximum limit to 1000 <?php // load Zend Gdata libraries //require 'init_autoloader.php'; require_once 'Zend/Loader.php'; Zend_Loader::loadClass('Zend_Gdata'); Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); Zend_Loader::loadClass('Zend_Http_Client'); Zend_Loader::loadClass('Zend_Gdata_Query'); Zend_Loader::loadClass('Zend_Gdata_Feed'); // set credentials for ClientLogin authentication $user = "[email protected]"; $pass = "sample...

Migrate from Google Data (GData) APIs to new Google APIs Client Library for Java

google-contacts,google-admin-sdk,google-provisioning-api,google-email-settings-api,google-profiles-api

We had completed the migration and thought will update the thread and it might help someone else. Below APIs/components are getting shutdown by April 20, 2015. 1) Google Apps Provisioning API Migrated to ADMIN Directory API 2) Google Apps Profiles Data API --> Migrated to --> ADMIN Directory API 3)...