{"id":13565040,"url":"https://github.com/googleworkspace/browser-samples","last_synced_at":"2025-04-03T22:30:31.818Z","repository":{"id":36975756,"uuid":"125073788","full_name":"googleworkspace/browser-samples","owner":"googleworkspace","description":"Web samples for Google Workspace APIs","archived":false,"fork":false,"pushed_at":"2024-11-04T18:17:37.000Z","size":334,"stargazers_count":333,"open_issues_count":30,"forks_count":557,"subscribers_count":20,"default_branch":"main","last_synced_at":"2024-11-04T18:46:04.852Z","etag":null,"topics":["google-workspace","gsuite","javascript","samples"],"latest_commit_sha":null,"homepage":"","language":"HTML","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:31:30.000Z","updated_at":"2024-11-04T11:02:17.000Z","dependencies_parsed_at":"2024-01-16T18:58:20.947Z","dependency_job_id":"36993daf-0033-4917-8558-186d8ae8081f","html_url":"https://github.com/googleworkspace/browser-samples","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/googleworkspace%2Fbrowser-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleworkspace%2Fbrowser-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleworkspace%2Fbrowser-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleworkspace%2Fbrowser-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/googleworkspace","download_url":"https://codeload.github.com/googleworkspace/browser-samples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247089694,"owners_count":20881820,"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","javascript","samples"],"created_at":"2024-08-01T13:01:39.697Z","updated_at":"2025-04-03T22:30:30.918Z","avatar_url":"https://github.com/googleworkspace.png","language":"HTML","readme":"# browser-samples\n\nBrowser samples for [Google Workspace APIs](https://developers.google.com/workspace/) docs.\n\n## APIs\n\n### [Admin SDK](https://developers.google.com/admin-sdk/)\n\n### [Apps Script API](https://developers.google.com/apps-script/api)\n\n- [Quickstart](apps-script/quickstart)\n\n### [Calendar](https://developers.google.com/calendar)\n\n- [Quickstart](calendar/quickstart)\n\n### [Classroom](https://developers.google.com/classroom)\n\n- [Quickstart](classroom/quickstart)\n\n### [Drive](https://developers.google.com/drive/v3)\n\n- [Quickstart](drive/quickstart)\n\n### [Docs](https://developers.google.com/docs)\n\n- [Quickstart](docs/quickstart)\n\n### [Gmail](https://developers.google.com/gmail/api/)\n\n- [Quickstart](gmail/quickstart)\n\n### [People](https://developers.google.com/people/)\n\n- [Quickstart](people/quickstart)\n\n### [Sheets](https://developers.google.com/sheets/api/)\n\n- [Quickstart](sheets/quickstart)\n- [Snippets](sheets/snippets)\n\n### [Slides](https://developers.google.com/slides/)\n\n- [Quickstart](slides/quickstart)\n- [Snippets](slides/snippets)\n\n## Setup\n\n1. Clone this repository.\n1. Follow the README instructions in the API folder to run and test samples.\n\n## Troubleshooting\n\nHere are some tips for troubleshooting errors when running these samples:\n\n- Be sure to create a local HTTP server to server the HTML page in the quickstart example. Otherwise the `gapi` client may encounter errors.\n- Check your browser console for errors. In Chrome, this is under **View \u003e Developer \u003e JavaScript Console**\n\nBelow are some possible errors you may encounter:\n\n### Error: origin_mismatch\n\nThis error will occur during the authorization flow if the host and port used to serve the web page doesn't match an allowed JavaScript origin on your Google Developers Console project. Make sure to correctly specify **Authorized JavaScript origins** in the quickstart steps.\n\n### idpiframe_initialization_failed: Failed to read the 'localStorage' property from 'Window'\n\nThe Google Sign-in library requires that third-party cookies and data storage is enabled in the web browser. For users that run into this error, prompt them to enable the feature or add an exception for accounts.google.com.\n\n### idpiframe_initialization_failed: Not a valid origin for the client\n\nThe Google Sign-in library requires that the domain registered in the Google Developers Console matches the domain being used to host the web page. Make sure to correctly specify **Authorized JavaScript origins** in the quickstart steps.\n\n## Linting\n\nThis project uses [htmllint](https://github.com/htmllint/htmllint).\n\nInstall \u0026 run:\n\n```sh\nsudo npm install -g htmllint-cli\nhtmllint\n```\n\nConfigure [options](https://github.com/htmllint/htmllint/wiki/Options) in the `.htmllintrc`.\n\n## Client Library\n\nGoogle Workspace APIs use the [Google API JavaScript client library](https://github.com/google/google-api-javascript-client).\n\n## Contributing\n\nContributions welcome! See the [Contributing Guide](CONTRIBUTING.md).\n","funding_links":[],"categories":["HTML"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleworkspace%2Fbrowser-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogleworkspace%2Fbrowser-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleworkspace%2Fbrowser-samples/lists"}