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...
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...
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...
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,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...
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
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...
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...
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.
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:...
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:...
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...
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,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...
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-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)....
google-api-php-client,google-contacts
I found the solution I had to add group={groupId} to the query....
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...
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...
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!...
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); ...
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....
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....
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,...
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...
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)...