{"id":13583220,"url":"https://github.com/googleworkspace/node-samples","last_synced_at":"2025-04-06T18:32:07.251Z","repository":{"id":37670810,"uuid":"125073887","full_name":"googleworkspace/node-samples","owner":"googleworkspace","description":"Node samples for Google Workspace APIs.","archived":false,"fork":false,"pushed_at":"2025-02-21T16:22:10.000Z","size":9819,"stargazers_count":475,"open_issues_count":78,"forks_count":491,"subscribers_count":20,"default_branch":"main","last_synced_at":"2025-02-21T17:27:31.037Z","etag":null,"topics":["google-workspace","gsuite","node","samples"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/googleworkspace.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-13T15:32:11.000Z","updated_at":"2025-02-21T16:22:00.000Z","dependencies_parsed_at":"2024-03-05T23:46:36.545Z","dependency_job_id":"2482e8fe-06f7-49a4-809d-a6ca29322a30","html_url":"https://github.com/googleworkspace/node-samples","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleworkspace%2Fnode-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleworkspace%2Fnode-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleworkspace%2Fnode-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleworkspace%2Fnode-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/googleworkspace","download_url":"https://codeload.github.com/googleworkspace/node-samples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247531112,"owners_count":20953895,"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":["google-workspace","gsuite","node","samples"],"created_at":"2024-08-01T15:03:20.097Z","updated_at":"2025-04-06T18:32:02.235Z","avatar_url":"https://github.com/googleworkspace.png","language":"JavaScript","readme":"# Node.js samples for [Google Workspace APIs](https://developers.google.com/workspace/) docs\n\nAPI| Quickstart| Snippets\n---| ---| ---\n**Apps\u0026nbsp;Script**| [Link](https://developers.google.com/apps-script/api/quickstart/nodejs)| ---\n**Calendar**| [Link](https://developers.google.com/google-apps/calendar/quickstart/nodejs)| [Link](https://developers.google.com/calendar/overview)\n**Classroom**| [Link](https://developers.google.com/classroom/quickstart/nodejs)| [Link](https://developers.google.com/classroom/guides/get-started)\n**Drive V3**| [Link](https://developers.google.com/drive/v3/web/quickstart/nodejs)| [Link](https://developers.google.com/drive/v3/web/about-sdk)\n**Gmail**| [Link](https://developers.google.com/gmail/api/quickstart/nodejs)| [Link](https://developers.google.com/gmail/api/guides/)\n**Sheets**| [Link](https://developers.google.com/sheets/api/quickstart/nodejs)| [Link](https://developers.google.com/sheets/api/guides/concepts)\n**Slides**| [Link](https://developers.google.com/slides/quickstart/nodejs)| [Link](https://developers.google.com/slides/how-tos/overview)\n**Tasks**| [Link](https://developers.google.com/tasks/quickstart/nodejs)| ---\n\n## Sample Types\n\n### Quickstarts\n\nIn about **five minutes**, you'll have a simple Node.js command-line application that makes requests to a Google Workspace API.\n\n### Guides\n\nLearn how to use functions within an API, such as creating a new Google Slide to adding values to a Google Spreadsheet.\n\n## Other APIs\n\n### Admin SDK\n\n- [Directory Quickstart](https://developers.google.com/admin-sdk/directory/v1/quickstart/nodejs)\n- [Reports Quickstart](https://developers.google.com/admin-sdk/reports/v1/quickstart/nodejs)\n- [Reseller Quickstart](https://developers.google.com/admin-sdk/reseller/v1/quickstart/nodejs)\n\n## Setup\n\n1. Install [Node.js v6.4.0 or greater](https://nodejs.org).\n1. Clone this repository.\n1. Follow the folder README instructions to run and test samples.\n\n### Run Snippet Tests\n\n#### Create a Service Account\n\nBefore running tests, create a service account and download `application_credentials.json` in this directory.\n\nTo create a service account, follow these steps:\n\n1. Navigate to the [Google Cloud Console API Dashboard](https://console.cloud.google.com/apis/dashboard)\n1. Enable APIs for products you'd like to test snippets for like Slides or Drive.\n1. Create a service account key under [Credentials](https://console.cloud.google.com/apis/credentials).\n1. After creating a new JSON Service account key without a role, rename the downloaded file to `application_credentials.json` and move the file to this directory.\n\n#### Run tests\n\nIn any snippet directory, `npm run test`.\n\n### Lint\n\nInstall and run ESLint. Example:\n\n```shell\nnpm run lint apps-script/**/*.js\n```\n\nSome IDEs (like VS Code) will detect these lint errors within the editor.\n\n## Node.js Client Library\n\nGoogle Workspace APIs use the [Google API Node.js client library](https://github.com/google/google-api-nodejs-client).\n\n## Contributing\n\nContributions welcome! See the [Contributing Guide](CONTRIBUTING.md).\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleworkspace%2Fnode-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogleworkspace%2Fnode-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleworkspace%2Fnode-samples/lists"}