gdata

Batch Update to Spreadsheet with Google GData API Using 2 Legged OAUTH / OPEN ID Domain Account

泄露秘密 提交于 2019-12-01 08:41:13
Ok, weekend is shot on this - here is my last ditch sunday night call for help. Google Marketplace app that must use 2 Legged OAUTH aproach needs to write 50K records to a Google Doc Spreadsheet. I'm able to create, resize, rename and write records to a spreadsheet. It takes up to a minute to write 100 rows individually, so I have to use a batch update. Can't get batch update to work. The below code is my best attempt - I keep getting "Token invalid - Invalid token 401". All of the sample code out there is for three legged oauth - but I can't prompt the user to approve the app since it's a

Google App Engine cannot find gdata module

半腔热情 提交于 2019-12-01 07:36:09
I can run a simple "Hello World" Google App Engine application on localhost with no problems. However, when I add the line "import gdata.auth" to my Python script I get "ImportError: No module named gdata.auth". I have installed the gdata module and added the following line to my .bashrc: export PYTHONPATH=$PYTHONPATH:/Library/Python/2.5/site-packages/ Is there anything else I need to do? Thanks. EDIT: The strange thing is that if I run python from a shell and type "import gdata.auth" I do not get an error. Your .bashrc is not known to Google App Engine. Make sure the gdata directory (with all

Batch Update to Spreadsheet with Google GData API Using 2 Legged OAUTH / OPEN ID Domain Account

这一生的挚爱 提交于 2019-12-01 05:42:16
问题 Ok, weekend is shot on this - here is my last ditch sunday night call for help. Google Marketplace app that must use 2 Legged OAUTH aproach needs to write 50K records to a Google Doc Spreadsheet. I'm able to create, resize, rename and write records to a spreadsheet. It takes up to a minute to write 100 rows individually, so I have to use a batch update. Can't get batch update to work. The below code is my best attempt - I keep getting "Token invalid - Invalid token 401". All of the sample

Google App Engine cannot find gdata module

笑着哭i 提交于 2019-12-01 04:53:13
问题 I can run a simple "Hello World" Google App Engine application on localhost with no problems. However, when I add the line "import gdata.auth" to my Python script I get "ImportError: No module named gdata.auth". I have installed the gdata module and added the following line to my .bashrc: export PYTHONPATH=$PYTHONPATH:/Library/Python/2.5/site-packages/ Is there anything else I need to do? Thanks. EDIT: The strange thing is that if I run python from a shell and type "import gdata.auth" I do

How do I authorize a gdata client without using the gdata oauth2 workflow?

点点圈 提交于 2019-11-30 15:55:37
I already have an access_token and refresh_token, but I can't figure out a way to create an authorized gdata client without going through the entire token generation workflow in gdata. So I got this working finally. Here's how I did it: client = gdata.contacts.client.ContactsClient() credentials = gdata.gauth.OAuth2Token(client_id = 'client_id', client_secret = 'client_secret', scope = 'https://www.google.com/m8/feeds/', user_agent = auth.user_agent, # This is from the headers sent to google when getting your access token (they don't return it) access_token = auth.access_token, refresh_token =

php zend gdata - Get list of google docs using oauth

让人想犯罪 __ 提交于 2019-11-30 14:35:10
问题 I've got my session with the valid token that i set up this way : $session_token = Zend_Gdata_AuthSub::getAuthSubSessionToken($_GET['token']); // Store the session token in our session. $_SESSION['cal_token'] = $session_token; Then i want to be able to do this: $service = Zend_Gdata_Docs::AUTH_SERVICE_NAME; $client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $service); $docs = new Zend_Gdata_Docs($client); $feed = $docs->getDocumentListFeed(); But using the token. Instead of the

Google+ photos api [closed]

别说谁变了你拦得住时间么 提交于 2019-11-30 13:28:51
Is there a Google+ photos gdata API? I was using Google picasa API but picasa has a 1 GB limit for photos. I want to upload all my photos using the script which i am writing to Google+ photos. Is there a Google+ photos gdata API? Google+ does not currently have a public photo API. It was accidentally announced at one point but has not been officially announced since. If 1GB is not enough you can pay to increase it . Picasa has a 1GB limit for photos greater than 2048 x 2048 pixels. However, there is no limit to photos which are uploaded under this size limitation. On the other hand, you can

contentDetails or duration not coming using Youtube v3 api

主宰稳场 提交于 2019-11-30 10:14:57
Look at this link , there is an example given https://www.googleapis.com/youtube/v3/videos?id=7lCDEYXw3mM&key=YOUR_API_KEY &part=snippet,contentDetails,statistics,status Part of the response is "contentDetails": { "duration": "PT15M51S", "aspectRatio": "RATIO_16_9" }, Now I want to retrieve contentDetails or mainly duration. So I called using https://www.googleapis.com/youtube/v3/search?part=snippet,contentDetails&key=[API_KEY]&q=something&maxResults=15&&fields=items,nextPageToken,prevPageToken,tokenPagination It shows { error: { errors: [ { domain: "youtube.part", reason: "unknownPart",

Using OAuth2 with service account on gdata in python

不想你离开。 提交于 2019-11-30 00:55:44
I want to use data.photos.service.PhotosService to push and pull photos from Picasa. I got a service key file XXXXXXXX-privatekey.p12 from Google console and am now trying to authenticate using said key with google. The documentation for OAUTH2 using appengine has led me to believe that using the following would be of use: f = file(settings.SITE_ROOT + '/aurora/' + settings.PRIVATE_KEY, 'rb') key = f.read() f.close() credentials = SignedJwtAssertionCredentials(settings.SERVICE_ACCOUNT_NAME, key, scope = 'http://picasaweb.google.com/data https://www.googleapis.com/auth/userinfo.email https:/

How do I authorize a gdata client without using the gdata oauth2 workflow?

我是研究僧i 提交于 2019-11-29 23:15:44
问题 I already have an access_token and refresh_token, but I can't figure out a way to create an authorized gdata client without going through the entire token generation workflow in gdata. 回答1: So I got this working finally. Here's how I did it: client = gdata.contacts.client.ContactsClient() credentials = gdata.gauth.OAuth2Token(client_id = 'client_id', client_secret = 'client_secret', scope = 'https://www.google.com/m8/feeds/', user_agent = auth.user_agent, # This is from the headers sent to