google-api-python-client Questions

8

I am trying to get my google authentication working on a Django app that is requesting Gmail and Calendar data. I have set up the oAuth API in the Google developer console and linked it with my pro...

4

I'm trying to make an app where it displays the files and folders inside my google drive folder so I went to google apis and used the code I found on their page its here below as I didn't expect it...

4

Solved

I am running the quickstart.py example code under Python Quickstart and I am getting the following error: ValueError: Client secrets must be for a web or installed app. I created a credentials.j...
Donnadonnamarie asked 4/6, 2019 at 13:46

2

Solved

Hello there I'm a newbie to programming. I was going to authenticate to Gmail API using oauth2 Authentication and I forgot to set the redirect URI at the first place. Then I registered it but I sti...

23

Solved

I got this error in Google App Engine's Python have used Google Translate API, But I don't know how to fix, <module> from apiclient.discovery import build ImportError: No module named apiclie...

2

How do you delete a file in your google drive with the Google Drive API? I’m using v3 and I’ve literally tried everything and nothing’s been working. I believe the ones I’ve tried to be outdated, w...

5

Solved

I wrote a Python script(Google_add.py) which creates users in the Google Workspace. However, When it is run, an AttributeError occurred. How do I resolve this Error? ・Google_add.py (Excerpt) PATH =...

2

I am following the tutorial here (https://cloud.google.com/ai-platform/training/docs/training-jobs#python_1) and using Python to deploy a machine learning model to Google cloud for training. Howeve...

1

The Google Play Email List management area in the Google Play Console allows admins to enter comma separated email addresses or upload a CSV. The Google Play Console makes an http POST to https://p...

2

Solved

About a week ago I set up an application on google. Now when I tri and run: SCOPES = ['https://www.googleapis.com/auth/gmail.readonly'] creds = None if os.path.exists('token.pickle'): with open(se...

5

Wanted to try out python, and google colaboratory seemed the easiest option.I have some files in my google drive, and wanted to upload them into google colaboratory. so here is the code that i am u...

3

Solved

I have deployed a Python 3.7 function in Google Cloud. I need to get the project-id through code to find out where it is deployed. I write a small Python 3.7 script and test it through Google shell...

3

We currently use google-api-python-client to handle our user-facing OAuth flow. We had a few users email us asking why their accounts didn't import successfully, and when we looked, their tokens di...

7

I am using OAuthlib for conducting OAuth flow of Google. It was working well for 4 to 5 months. Suddenly I started getting below error: File "/home/whitesnow-2/Gaurav/Axonator/AxVirtualEnv/loc...

5

I'm trying to download specific folders from Google Drive. I tried this example http://www.mwclearning.com/?p=1608 but its download all the files from G-Drive. EX: If I have two folders in Googl...
Ariadne asked 17/8, 2016 at 18:0

3

Solved

I'm trying to just make a simple rest call to a secure predict endpoint for a google machine learning project but it can't find the google.oauth2 module. This is my code: import urllib2 from googl...
Sporophyll asked 18/5, 2018 at 19:56

4

I am using Google's python API client, and one of the lines it wants you to use is: from apiclient import discovery When I run this it returns the error: ImportError: cannot import name disco...
Cle asked 3/8, 2017 at 6:59

7

I have python webapp2 application but when I run it I get this error ImportError: No module named googleapiclient.discovery what I found in stackoverflow is ImportError: No module named apiclient....

9

Solved

I am currently trying to build an app with pyinstaller. I have gotten the error The 'google-api-python-client' distribution was not found and is required by the application and I'm completely lost ...
Sanfred asked 29/4, 2020 at 20:16

1

Hello i am trying to integrate Google Sign In into my python script and i am running this this error: Access blocked: This app’s request is invalid You can’t sign in because this app sent an invali...

15

Solved

I wanted to get all the folders inside a given Google Cloud bucket or folder using Google Cloud Storage API. For example if gs://abc/xyz contains three folders gs://abc/xyz/x1, gs://abc/xyz/x2 and...
Positivism asked 6/5, 2016 at 14:28

3

from pprint import pprint from Goo_gle import Create_Service CLIENT_SECRET_FILE = 'Client_Calendar.json' API_NAME = 'calendar' API_VERSION = 'v3' SCOPES = ['https://www.googleapis.com/auth'] se...
Pollen asked 25/10, 2022 at 6:7

2

I currently have a docker container on the gcloud container repository which I want to launch an instance of in order to run a calculation, save a result and close: gcloud compute instances create-...

4

Solved

I have the following code, and i don't know how to print the links of the next page, how to go to the next pages? #!/usr/bin/python2.4 # -*- coding: utf-8 -*- import pprint from apiclient.disco...
Northeast asked 19/7, 2012 at 6:12

4

I am trying to use Google Drive API (Python) to download some tabs of a spreadsheet file. Is the gids information in the file's metadata? What I am trying to do is (this may not be correct, please ...

© 2022 - 2025 — McMap. All rights reserved.