{"id":17043465,"url":"https://github.com/kevinschaich/gapi-client","last_synced_at":"2025-04-12T15:11:08.403Z","repository":{"id":57244419,"uuid":"81594053","full_name":"kevinschaich/gapi-client","owner":"kevinschaich","description":"🗺 A very thin wrapper for Google's client-side javascript V3 API","archived":false,"fork":false,"pushed_at":"2018-09-16T20:12:33.000Z","size":10,"stargazers_count":7,"open_issues_count":3,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T09:45:07.960Z","etag":null,"topics":["api","api-client","api-wrapper","client","client-lib","client-library","client-side","gapi","gapi-client","google","google-api","google-apis","javascript","npm","npm-package","package"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/gapi-client","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevinschaich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-10T18:27:00.000Z","updated_at":"2022-10-31T01:09:51.000Z","dependencies_parsed_at":"2022-09-01T04:31:08.297Z","dependency_job_id":null,"html_url":"https://github.com/kevinschaich/gapi-client","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/kevinschaich%2Fgapi-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinschaich%2Fgapi-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinschaich%2Fgapi-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinschaich%2Fgapi-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinschaich","download_url":"https://codeload.github.com/kevinschaich/gapi-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248487715,"owners_count":21112191,"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":["api","api-client","api-wrapper","client","client-lib","client-library","client-side","gapi","gapi-client","google","google-api","google-apis","javascript","npm","npm-package","package"],"created_at":"2024-10-14T09:29:37.092Z","updated_at":"2025-04-12T15:11:08.376Z","avatar_url":"https://github.com/kevinschaich.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# gapi-client\n\nA *very* thin wrapper for Google's client-side javascript V3 API.\n\n## Example\n\n```bash\nnpm install --save gapi-client\n```\n\n`index.js:`\n\n```javascript\nimport gapi from 'gapi-client';\n\n//On load, called to load the auth2 library and API client library.\ngapi.load('client:auth2', initClient);\n\n// Initialize the API client library\nfunction initClient() {\n  gapi.client.init({\n    discoveryDocs: [\"https://www.googleapis.com/discovery/v1/apis/drive/v3/rest\"],\n    clientId: 'YOUR_CLIENT_ID',\n    scope: 'https://www.googleapis.com/auth/drive.metadata.readonly'\n  }).then(function () {\n    // do stuff with loaded APIs\n    console.log('it worked');\n  });\n}\n\n```\n\n## License\n\nMIT © [Kevin Schaich](https://kevinschaich.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinschaich%2Fgapi-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinschaich%2Fgapi-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinschaich%2Fgapi-client/lists"}