google-api

Can I using Google Sheet API only with API Key or using Client ID and Client secret, but without client_secret.json?

Can I using Google Sheet API only with API Key or using Client ID and Client secret, but without client_secret.json? Question: In this provided Python code in this quickstart, it using credentials.json such in this line: flow = InstalledAppFlow.from_client_secrets_file(‘credentials.json’, SCOPES) I have enabled the Sheet and Drive API. I created credentials from the APIs & …

Total answers: 2

sending request to reCAPTCHA Enterprise API fails

Sending request to reCAPTCHA Enterprise API fails Question: I am trying to create ReCaptcha assessment using their REST API in my backend server. From reading the documentation, I understand that the request body contains an instance of Assesment, but when I try to send a request, I receive the following error: TypeError: Object of type …

Total answers: 1

Not sure of the Print Structure with YouTube v3 API

Not sure of the Print Structure with YouTube v3 API Question: So I was creating a script to list information from Google’s V3 YouTube API and I used the structure that was shown on their Site describing it, so I’m pretty sure I’m misunderstanding something. I tried using the structure that was shown to print …

Total answers: 1

I can't authorize gmail api application in google colaboratory

I can't authorize gmail api application in google colaboratory Question: I’m running the quickstart code from https://developers.google.com/people/quickstart/python in a colab notebook. # [START people_quickstart] from __future__ import print_function import os.path from google.auth.transport.requests import Request from google.oauth2.credentials import Credentials from google_auth_oauthlib.flow import InstalledAppFlow from googleapiclient.discovery import build from googleapiclient.errors import HttpError # If modifying these scopes, …

Total answers: 2

How to return all events on a specific date in Google Calendar API

How to return all events on a specific date in Google Calendar API Question: i am using Python and Google Calendar API to build a calendar. I would like to get all the events that exist on a given date. The date will be given as a string ‘yyyy-mm-dd’. I have created a function that …

Total answers: 1

Get chart from Google Spreadsheet and update chart placeholder in Slides with Python

Get chart from Google Spreadsheet and update chart placeholder in Slides with Python Question: I’m using Google API to automatize a monthly report. I’m coping a spreadsheet and slide templates, updating the spreadsheet data and I want to add the charts to slides. My spreadsheet have one chart per sheet and each slide will only …

Total answers: 1

In python, is there any way I can store a 'Resource' object so I can use it later?

In python, is there any way I can store a 'Resource' object so I can use it later? Question: I am writing a program about the YouTube API flow = google_auth_oauthlib.flow.InstalledAppFlow.from_client_secrets_file(client_secrets_file, scopes) credentials = flow.run_console() youtube_analytics = googleapiclient.discovery.build("youtubeAnalytics", "v2", credentials=credentials) Finally it will return a ‘Resource’ object, can I store this object? So that I …

Total answers: 2