google-drive-sheets
Utilities for Google Drive and Sheets APIs that help you create folders, spreadsheets and read/save data
Prerequisites
Before executing anything, please go through the steps here. It will kickstart the authorization process for your own app.
Save the credentials.json
file (not saved in this repo) generated from the first step, in the root directory of your project to enable Google Drive and Sheets capabilities.
Note: the credentials.json
file has to be present in order to work with the APIs.
Note: If while creating drive/sheets service objects, you get "error": "invalid_grant", "error_description": "Bad Request"
, the credentials.json
might have been expired.
Go to the Google Cloud Console and generate a new OAuth Client ID (find more information on the guide page for your app).