The Google APIs Client Library for Python provides access to many Google APIs. It is designed for Python client-application developers and offers simple, flexible, powerful API access.
0
votes
1answer
20 views
Has not supported to download Google Translate API library in Google App Engine's Python
I can see in this link which has not supported to download Google Translate API library yet.
Therefore, I want to ask There is another method to use Google Translate API in Google App Engine or not?
...
0
votes
1answer
27 views
TypeError: Cannot read property 'translations' of undefined in Google Translate API
I use the following code from this Google Translate API's Get Started
<head>
<title>Translate API Example</title>
</head>
<body>
<div ...
0
votes
1answer
25 views
Google Drive Service Account Access on Google App Engine
I am trying to gain service account access to to the Google Drive API. I followed the Google Drive SDK example when I was building my application. My code resembles the example almost exactly:
class ...
0
votes
0answers
8 views
New to Google DoubleClick DFA API
I would like to extract report from DoubleClick through API into SQL database. Is that possible? I familiar with Python, does anyone tried this in Python?
-1
votes
1answer
12 views
Picasa API image URL extraction
I have been able to programmatically create an album however, using the Picasa Python API I want to achieve two more tasks.
Uploading an image to the album. (Although I am following instructions I ...
2
votes
1answer
94 views
Google BigQuery Incomplete Query Replies on Odd Attempts
When querying BigQuery through the python api using:
service.jobs().getQueryResults
We're finding that the first attempt works fine - all expected results are included in the response. However, if ...
0
votes
1answer
52 views
AppAssertionCredentials on AppEngine: how to impersonate user account?
I'm using AppAssertionCredentials on my python GAE app, to authenticate as a service account. However this is a generic service account, I don't see how to authorize it to impersonate user accounts in ...
0
votes
0answers
30 views
revoke function from google-api-python-client
I am creating a logout function from a django app using the built in revoke method from google-api-python-client but it doesn't seem to work. Here is my code.
def google_logout(request, user_id = ...
0
votes
0answers
56 views
Python script stalls on AWS EC2 GovCloud
I have a threaded Python script running on AWS EC2 GovCloud that stalls after 14-15 minutes of processing time (by that I mean the hh:mm reading from the TIME column when I run 'ps aux | grep ...
0
votes
1answer
33 views
Python gdata progammaticLogin() - check login failure
I'm trying to access a Google Drive using gdata-Python-client package. I can get access to an account by providing authentication details (user name, password) and open a client to manipulate ...
1
vote
1answer
51 views
Automatic Authentication--Google Calendar API
I have more of a general question about how I would go about achieving something. I would like to run a daemon process that updates my own Google Calendar (as a background process). I have consulted ...
1
vote
1answer
68 views
httplib.ResponseNotReady when using standard Google APIs Python library
I'm trying to run Google API Python library to use freebase API.
I followed the tutorial in this link.
https://developers.google.com/api-client-library/python/start/get_started
When i run this code.
...
0
votes
0answers
82 views
Storing client oauth2 credentials in Google App-Engine datastore
I'm writing an application that accesses Google APIs offline, on behalf of users who sign up. The signup process collects basic account information like, Business Name, Contact Eamil etc.. then takes ...
0
votes
1answer
85 views
Youtube Python API v3 call onBehalfOfContentOwner returns 403 error
I am trying to search my own videos doing search with parameter onBehalfOfContentOwner=MY_CONTENT_OWNER_ID but keep getting 403 Forbidden error.
Private key is being used for authentication.
...
0
votes
0answers
94 views
Access Google Calendar within Google App Engine project
I am new to Google App Engine (GAE) and its Python api. For the past weekend, I have been trying to set up a simple app that will send SMS message to my phone whenever it sees an upcoming event in the ...
1
vote
1answer
257 views
How to avoid 'Failed to retrieve access token: { “error” : “invalid_grant” }' in offline GAE cron tasks?
This post is a followup to How to make 'access_type=offline' / server-only OAuth2 operations on GAE/Python. The http = credentials.authorize(httplib2.Http()) part no longer fails when testing, but it ...
0
votes
0answers
47 views
adspygoogle.common.Errors.ValidationError: Authentication data is missing
Ok, so I'm trying to pull a reference table from DFP and I'm running the example script below that Google provided and I'm getting the error:
"adspygoogle.common.Errors.ValidationError: ...
4
votes
1answer
178 views
How to Access the Directory API in Admin SDK
Trying in vain to access the Directory API in the Google Admin SDK (Reference). Upgrading the "google-api-python-client" package doesn't resolve it, as the Downloads > Installation > Python link ...
0
votes
1answer
203 views
How to make 'access_type=offline' / server-only OAuth2 operations on GAE/Python?
This post is a followup to How to do OAuth-requiring operations in a GAE cron job?, where I realized I'm mis-using the @oauth_required decorator from OAuth2DecoratorFromClientSecrets.
As described by ...
0
votes
1answer
120 views
How to do OAuth-requiring operations in a GAE cron job?
This post is a followup to How to do OAuth-requiring operations in a GAE Task Queue?. As suggested by bossylobster in this post, I did try to hardcode the user_id in my script, but the cron task ...
0
votes
1answer
60 views
Using Google Client Library in Python without local webserver
I've got a Python program that interacts with Google APIs that authenticates via OAuth with the sample code that Google provides:
# Perform OAuth 2.0 authorization.
flow = ...
0
votes
1answer
116 views
How to do OAuth-requiring operations in a GAE Task Queue?
I have a simple Google App Engine app that includes a /update page which updates a YouTube playlist. It looks like this:
class UpdatePage(webapp2.RequestHandler):
@decorator.oauth_required
...
1
vote
1answer
91 views
client_secrets.json file unreadable once deployed to GAE
I have an app that works using dev_appserver.py on my machine. I deploy it successfully:
ronj@l:~$ appcfg.py update myapp/
03:03 PM Host: appengine.google.com
03:03 PM Application: myapp; version: 1
...
1
vote
0answers
26 views
Can I get editLink and aclLink by using google calendar api v3 python?
My current project use gdata and I can easily get editLink and aclLink by following calls:
calendar.GetEditLink().href
calendar.GetAclLink().href
Now I'm trying to switch to api v3. And I found no ...
0
votes
1answer
132 views
How to properly define GAE's oauth2callback?
The Using GAE / Decorators guide tells me that "you need to add a specific URL handler to your application to handle the redirection from the authorization server back to your application":
def ...
0
votes
1answer
46 views
Google Apis Client Generator Python Not Running
I'm trying to execute Google APIs Client Generator to build new ADMIN-SDK for Java Language however I'm stuck in the generator, I've tried step by step using python2.6 and python2.7 both had similar ...
0
votes
1answer
39 views
Is there a limit to start option in google custom api CSE list?
using google custom API, I have a problem when I try to get results of more than 100.
I got an error as shown below. The code I am using is below:
res = service.cse().list(
q='lectures',
...
0
votes
1answer
79 views
Which Youtube API scope should I use in order to access my own video's tags in Youtube API v3
I try to retrieve videos' tags using Python API client for Youtube API v3, and I receive snippet without .tags in it. API scope seems to be the reason for me.
0
votes
1answer
276 views
google-api-python-client doesn't work and makes Spyder to fail when starting
I installed google-api-python-client on my Ubuntu 13.04 with
sudo easy_install --upgrade google-api-python-client
as it is said here.
After that I tried to translate something in python with it. I ...
0
votes
1answer
137 views
YouTube Analytics: How to get total views for a specific set of YouTube videos
I'm using "v1" of the "youtubeAnalytics" service to get view counts for YouTube videos. I can get view data for a specific video by using "filters" parameter, but I'm not sure how to get data for ...
0
votes
0answers
91 views
Saving local changes to remote Google drive speadsheet
Hi I have a simple app written in Python and Google Drive API v2
That suppose to download a spreadsheet (a Google form, but any would do really)
It downloads and changes it fine but fails during the ...
1
vote
1answer
141 views
Trying to create table in fusion tables returns Invalid credentials
This is the altered code of the sample code given in google to access Fusion tables via python. I want to create table in fusion tables and then insert data... using the post request I managed to ...
0
votes
2answers
163 views
In Python, how do you use the Google Apps Domain Key to connect to Google API?
I can't connect to my Google Calendar using the Domain Key, i.e. the consumer key with the same name as the domain name.
I'm using the the OAuth2WebServerFlow, Credentials and Storage objects as ...
1
vote
1answer
163 views
Formatting time from Google Calendar API with Python
I am trying to get an easy to read time format to list events from google calendar for the current day. I can pull in the data, but I'm having a problem formatting the data to be just the Hour and ...
0
votes
1answer
240 views
Store access token from Google OAuth 2.0 to access drive data from application account
I am able to execute quickstart.py for Google Drive using python. But how do we store the token and use it again - again for the same user without prompting user. Is their some way i can map user ...
0
votes
1answer
95 views
Using newer version of api python client in google app engine SDK
I'm playing with Google App Engine python SDK and now I run into a problem:
The version of My App Engine SDK is 1.7.5, which contains a version 1.0beta google api python client. However myproject ...
2
votes
0answers
111 views
Insert permissions via a batch request with Google APIs Client Library for Python
I'm starting with the Google APIs Client Library for Python. I'm developing with the Drive API. I'm migrating my web application from the deprecated Document List API v3 to Drive API V2.
When I add ...
0
votes
1answer
68 views
Install adwords api for python
I'm trying to install a library (Google adwords api) in python in Command Prompt. But when I ask:
setup.py install
Prompt opens the file steup.py in notepad and doesn't install the file.
What am I ...
0
votes
1answer
222 views
how can I decode google's JWT response in python?
I can decode it using this tool by google: https://developers.google.com/commerce/wallet/digital/docs/jwtdecoder
This tells me that the encoding algorithm is RS256, which is not supported by the only ...
1
vote
1answer
157 views
Download of HTML of native Google Drive documents does not work
I try to download Google Drive documents (with a Drive app) with this python function. it jumps every time to the # The file doesn't have any content stored on Drive part.
def download_file(service, ...
2
votes
1answer
812 views
HTTPException: Deadline exceeded while waiting for HTTP response from URL: #deadline
We are using the developers python guide with Python data 2.15 library and as per example stated for app engine.
createSite("test site one", description="test site one", source_site ...
0
votes
2answers
165 views
Google API Python client error
I want to have a script for getting home feed of Google+. I use for that google's script. The client-secrets.json file is:
{
"web": {
"client_id": "##########",
"client_secret": ...
0
votes
0answers
160 views
Getting a unique user id from Google Drive Permision?
I would like to get a unique user id from Google Drive for a permission that can be used to share another file from another account? At the moment nothing is returned from the get permissions call ...
0
votes
2answers
427 views
Google AppEngine to Fusion Tables with Service Accounts
Late to the game on migrating to the /v1 Fusion Table API but no holding off any longer.
I'm using Python on AppEngine and trying to connect to Google Fusion Tables with Google Service Accounts (the ...
5
votes
1answer
174 views
How do you retrieve files over 64KB in size with Cloud Storage JSON API?
I have a need to retrieve files in my web application that are greater than 64KB in size. Right now, in v1beta1 of the JSON API, Google is only allowing uploads/downloads of 64KB in size via their ...
0
votes
1answer
225 views
“Invalid Credentials” when accessing Google Drive API
I'm developing an AppEngine application which lists files from my Google Drive using the Google Drive API. I'm getting an 500 error when one of my users tries to run my app:
HttpError: ...
0
votes
0answers
122 views
How to correctly use google-api-python-clients BatchHttpRequest
I have a script that saves all my YouTube playlists (and the video references they contain) and is then able to load it back into YouTube.
It works fine, but is very slow, since each video is ...
0
votes
2answers
421 views
Google Drive Python API resumable upload error 401 after 2 hours
First of all, I'm sorry if this is a too silly question... this is the first time I'm trying to use any of the technologies involved in this script (Python, the drive api, oauth 2.0, etc). I swear ...
0
votes
1answer
194 views
“AccessTokenRefreshError: Invalid Response 403” from oauth2client
I am creating a script that will download all files for a particular Google Apps user by using a service account that is impersonates that user (using the Python template code provided here (see code ...
3
votes
1answer
328 views
Unable to add YouTube playlist using v3 api
I've been working on this for a bit and can't seem to get past this block.
I can create the service using the v3 api and can get some user specific data back but when it comes to adding playlists ...