Questions tagged [google-python-api]

The Google API Client Library for Python is designed for Python client-application developers. It offers simple, flexible access to many Google APIs. https://developers.google.com/api-client-library/python/

please use [Google-api-python-client] tag

91 questions
1
vote
1 answer

Change bigquery view definition with python

I'm trying to update a view in bigquery via python. I've been able to create the view using the following approach; def createView(client): viewDataset = 'dataset' viewName = 'name' view_ref = client.dataset(viewDataset).table(viewName) …
keeweem
  • 25
  • 4
1
vote
1 answer

google-python-api-client refresh token is null

I am trying to use refresh tokens with the google-python-api-client to avoid having to have the user authenticate the app every time. I have the following code that builds the fitness service by having the user authenticate every time from…
quantumbutterfly
  • 1,815
  • 4
  • 23
  • 38
1
vote
2 answers

google-speech-api and overriding phone number recognition

Does anyone know if there is a way to manipulate the recognition of phone numbers when using the Google Speech API? I am trying to implement a transcription scenario where a caller will say a string of letters and numbers, but the logic out of the…
1
vote
1 answer

Python 2to3 conversion of imported Google libraries

I have succesfully run the Python2 Google Example Youtube upload code. Now, i want to try converting this code to Python3. When i convert it with 2to3 tool, the result is like below. And if i try to run it with Python3 i get an error such below. I…
mcan
  • 1,914
  • 3
  • 32
  • 53
1
vote
1 answer

Streaming into Column-based partitioned Bigquery table "disallowed"?

Is streaming data into a column-partitioned BigQuery table supported? I'm having trouble, getting this error: BadRequest: 400 POST https://www.googleapis.com/bigquery/v2/projects/...$20180410/insertAll: Streaming to metadata partition of column…
Greg
  • 166
  • 1
  • 10
1
vote
1 answer

How to update multiple sheets within one Google Spreadsheet via Python API

Currently I am sending DataFrames (Python/Pandas) to a Google Spreadsheet via gspread-dataframe Currently I'm pushing one DataFrame to One Google Spreadsheet. my code is standard via the documentation, and looks like this: from gspread_dataframe…
Chris
  • 76
  • 1
  • 9
1
vote
0 answers

Oath2 and GSuite SDK (Python) - Service account 'Client is unauthorized to retrieve access tokens using this method' error

Hoping you can help. Attempting to interact with GSuite API via a service account; however getting the 'client is unauthorized to retrieve access tokens using this method' error. Sample code below: #!/usr/bin/env python3 # Set env, import tools and…
1
vote
1 answer

Getting Google Sheets Data into Redshift

I'm trying to get data that lives within a Google Sheet into our Redshift database. I was able to follow the directions from this link: https://www.twilio.com/blog/2017/02/an-easy-way-to-read-and-write-to-a-google-spreadsheet-in-python.html Is it…
1
vote
0 answers

Retrieving more than 10 photos from Google Places API

I am using the Google Places API to retrieve places and their correspondent photos. The problem I've found is that Google does not allow you to download more than 10 photos from a DETAILS RESPONSE, as exposed here: Google Places API - Get more than…
1
vote
0 answers

How log out of Google's oauth2 when used in a python CLI script

I am using oauth2 for my python CLI script. I am using the code from here : https://github.com/google/google-api-python-client/blob/master/samples/calendar_api/calendar_sample.py I am running the script with ("--noauth_local_webserver" ) option .…
Natesh bhat
  • 12,274
  • 10
  • 84
  • 125
1
vote
1 answer

Publish Google Sheet document to the web using Google Sheets API

My goal is to publish a Google Sheet document to the web and get the link using Google Sheets API. I managed to publish it using this advice and now it says "published" in File -> Publish to the web tab. However, the link given on this tab is…
Vasily
  • 2,192
  • 4
  • 22
  • 33
1
vote
1 answer

Import data from BigQuery to Cloud Storage in different project

I have two projects under the same account: projectA with BQ and projectB with cloud storage projectA has BQ with dataset and table - testDataset.testTable prjectB has cloud storage and bucket - testBucket I use python, google cloud rest…
1
vote
0 answers

Accessing YouTube Reporting in Automated Script

We're trying to write an automated script (i.e. no user interactions) that pulls YouTube reporting data from API (esp. with Google Python API Client). Currently, we have a Google user that is a Content Manager of a channel, and we can access its…
1
vote
1 answer

GSpread get_all_records() not stopping automatically when reading more than thousand rows

I need an API that could help me retrieve the data from Google Sheets, so I tried GSpread for retrieving 3000+ rows from a single worksheet, and it took me several minutes to wait for the data to be printed. However, there are some instances that…
1
vote
1 answer

Cannot send messages using fbchat on python

from fbchat import Client from fbchat.models import * client = Client('', '') print('Own id: {}'.format(client.uid)) client.send(Message(text='Hi me!'), thread_id='clientname',…
R S
  • 33
  • 1
  • 6