Skip to content

Instantly share code, notes, and snippets.

View HidemotoKisuwa's full-sized avatar

Denis de Moraes Luiz HidemotoKisuwa

View GitHub Profile
@HidemotoKisuwa
HidemotoKisuwa / DataImporter.py
Created November 6, 2020 11:55
Insert Data Through API
import httplib2
import os
from apiclient import discovery
from google.oauth2 import service_account
try:
scopes = ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/spreadsheets"]
secret_file = os.path.join(os.getcwd(), 'client_secret.json')