Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
/ gsheet_experiment Public archive

Ping a route to increament counter in a google sheet

License

Notifications You must be signed in to change notification settings

hargup/gsheet_experiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gsheet_experiment

Ping a route to increament counter in a google sheet.

Route: https://gsheet-experiments.herokuapp.com/ Google Sheet: https://docs.google.com/spreadsheets/d/1xrWKBZOEf4hWXlrA4RcPO7kOS-GK2K9qu8eVgYP61Y8/edit?usp=sharing

Fire up the given route and see the counter increasing in the google spreadsheet.

Installation

pip install -e git+https://github.com/burnash/gspread#master#egg=gspread

Install flask and other dependencies

pip install -r requirements.txt

We require the lastest commits to read credentials from Dictionary. As of now (2020-10-24), this commit isn't part of the last release. See burnash/gspread#785

Local Developement

  • Export credentials as environment variable
export GSHEETS_CREDS=$(cat service_account.json)
  • Run the server
python main.py

Deployment on Heroku

heroku config:set GSHEETS_CREDS="$(cat service_account.json)"
  • Push the lastest code to heroku
git push heroku main

About

Ping a route to increament counter in a google sheet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages