{"id":19397178,"url":"https://github.com/shubhank-srivastava/google-sheet-watcher-cli","last_synced_at":"2025-04-24T05:31:01.173Z","repository":{"id":57252311,"uuid":"83998588","full_name":"shubhank-srivastava/google-sheet-watcher-cli","owner":"shubhank-srivastava","description":"Watches your google sheets for any changes and notifies you via HTTP.","archived":false,"fork":false,"pushed_at":"2017-03-13T19:14:40.000Z","size":15,"stargazers_count":9,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-18T11:14:50.331Z","etag":null,"topics":["cli","google-sheets","google-spreadsheets","notifications","watcher"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shubhank-srivastava.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-05T20:06:44.000Z","updated_at":"2021-12-20T22:01:53.000Z","dependencies_parsed_at":"2022-08-31T22:20:36.872Z","dependency_job_id":null,"html_url":"https://github.com/shubhank-srivastava/google-sheet-watcher-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhank-srivastava%2Fgoogle-sheet-watcher-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhank-srivastava%2Fgoogle-sheet-watcher-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhank-srivastava%2Fgoogle-sheet-watcher-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhank-srivastava%2Fgoogle-sheet-watcher-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shubhank-srivastava","download_url":"https://codeload.github.com/shubhank-srivastava/google-sheet-watcher-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250572223,"owners_count":21452326,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","google-sheets","google-spreadsheets","notifications","watcher"],"created_at":"2024-11-10T10:39:48.177Z","updated_at":"2025-04-24T05:31:00.915Z","avatar_url":"https://github.com/shubhank-srivastava.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# google-sheet-watcher-cli\n\nThis is a Node.js application with CLI that enables you to watch for changes to google speadsheets that are either public or privately owned and notifies any HTTP server on a given callback URL. \n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes -\n\n### Prerequisites\n\nYou would need the following things -\n\n1. [PM2](https://github.com/Unitech/pm2)\n```\nnpm install pm2 -g\n```\n\n2. Google Service Account Key - Login to [Google Apps Console](https://console.developers.google.com), click on create credentials-\u003eservice account key. Select a service account and key type as JSON and click on create. After you have downlaoded the JSON file save it as ./data/google-credentials.json\n\n### Installing\n\n```\nnpm i google-sheet-watcher-cli -g\n```\n\n\n## Commands Overview\n\n```\ngsheets import\n```\nImport spreadsheets of auhtorised google user. Remember that all the sheets shared at the email mentioned as client_email field in the generated JSON file are ONLY the private files that will be imported.\n\n```\ngsheets add \u003cURL\u003e\n```\nAdd a Google Spreadsheet (should be public or privately visible to client_email field in the downloaded JSON file.)\n```\ngsheets list\n```\nList all sheets that have been added/imported.\n```\ngsheets del \u003cINDEX\u003e\n```\nRemove a spreadsheet from the list.\n```\ngsheets watcher start/stop/restart\n```\nStarts the watcher to look for changes in any of the spreadsheets.\n```\ngsheets callback \u003cURL\u003e\n```\nGive a callback URL that gets a hit with details if there is change in any spreadsheet.\nFor Example - \n```\nPOST http://\u003cyour_domain\u003e.com/callback\nBODY\n{ \n\turl: 'https://spreadsheets.google.com/feeds/worksheets/1SLRMX0APFh_EVb7Y3ac4PFn3bM2ipnGx7NaxhAVE8Qk/private/full',\n  \tid: '1SLRMX0APFh_EVb7Y3ac4PFn3bM2ipnGx7NaxhAVE8Qk',\n  \ttitle: 'Interview candidates',\n  \tupdated: '2017-03-13T18:51:58.957Z' \n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubhank-srivastava%2Fgoogle-sheet-watcher-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshubhank-srivastava%2Fgoogle-sheet-watcher-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubhank-srivastava%2Fgoogle-sheet-watcher-cli/lists"}