Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cody-scott/glitch_hour_api
https://github.com/cody-scott/glitch_hour_api
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cody-scott/glitch_hour_api
- Owner: cody-scott
- Created: 2019-10-08T00:00:12.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-08T16:03:17.000Z (about 5 years ago)
- Last Synced: 2024-04-17T22:10:49.217Z (7 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python3 Flask project
Get a service account token and grant that account access to your sheet
save the contents of the service token in a file
.data/api_credentials.json
Grand the email in this file access to your spreadsheets to allow it to read/writeadd these to .env
secret_key="SOMETHING"
generate secret key with:
openssl rand -base64 24
----
# RequestsGET
/getCategories
HEADER
required args:
secret_key (str)
sheet_id (str)
Returns list of the categories which you've defined----
GET
/recentInvoices
HEADER
required args:
secret_key (str)
sheet_id (str)
optional:
invoice_count (int)
List of recent invoices that you've submitted-----
POST
/submitInvoice
JSON
secret_key (str)
sheet_id (str)
data (list)
[
item (str),
date (MM/dd/YYYY),
cost (int or str),
category (str)
]