Script, used for salary calculations on private GDoc. Can be used as a sample.
- Sign up for Google API (if not yet): https://console.developers.google.com/
- Create Project & Enable API
- Credentials -> Create new Client ID
- Type: "Other", authorized/redirect = "http://localhost:8080" (may be ommitted)
client_id = Client ID
client_secret = Client Secret
- Credentials -> Create new Service Account
private_p12 = path to downloaded *.p12
- Fill oauth.py with client_id,client_secret. Run in cli, follow instructions.
- Fill data in data.json (user == Last name).
- Run calc.py.