https://github.com/illusion0-0/zecko
Google Sheet API mini project
https://github.com/illusion0-0/zecko
automation google-sheets-api javascript oauth
Last synced: 5 months ago
JSON representation
Google Sheet API mini project
- Host: GitHub
- URL: https://github.com/illusion0-0/zecko
- Owner: Illusion0-0
- Created: 2022-07-21T08:55:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-03T16:19:10.000Z (about 3 years ago)
- Last Synced: 2023-03-08T11:04:18.996Z (almost 3 years ago)
- Topics: automation, google-sheets-api, javascript, oauth
- Language: JavaScript
- Homepage:
- Size: 1.19 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**Google Sheet Automation**
https://user-images.githubusercontent.com/32845547/210397039-b7b7d569-7b61-4797-a50c-168cad1a2d41.mp4
Clone the repository
```bash
git clone https://github.com/Illusion0-0/zecko.git
cd zecko/
```
Install required NPM packages
```bash
npm i
```
Get the access-token from the Google Auth2 Playground: https://developers.google.com/oauthplayground/
1. Find the **Google Sheets API V4**:
2. Click on it, and then click the scope: https://www.googleapis.com/auth/spreadsheets
3. Click **Authorize APIs**. You'll be asked to sign in with Google and provide access. Sign in, and then hit **Allow** so you can use the scope.
4. After you login and authorize it, you'll get an Authorization code, click **Exchange authorization code for tokens**.
5. Copy the **ACCESS TOKEN**, you can check Auto-refresh token before it expires
Create a dotenv(.env or .env.local) file outside src and add variables
> REACT_APP_SHEET_ID = {google-spreadsheet-id}
> REACT_APP_ACCESS_TOKEN = {OAuth2.0-access-token}
Run the APP using
```bash
npm start
```
Note: Access Token expires in a while so you may need to generate it again.
Note: Re-run [npm start] after you change .env file.
Thank you for visiting this repo :D