{"id":21672731,"url":"https://github.com/rivervanrain/google_api","last_synced_at":"2026-05-05T06:35:18.455Z","repository":{"id":143728629,"uuid":"386337815","full_name":"RiverVanRain/google_api","owner":"RiverVanRain","description":"Google API, Client and Services for Elgg","archived":false,"fork":false,"pushed_at":"2024-05-11T11:40:26.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T09:27:52.005Z","etag":null,"topics":["elgg","google"],"latest_commit_sha":null,"homepage":"https://elgg.org/plugins/3110621","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RiverVanRain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-15T15:27:07.000Z","updated_at":"2024-05-11T11:40:29.000Z","dependencies_parsed_at":"2024-05-11T12:47:59.973Z","dependency_job_id":null,"html_url":"https://github.com/RiverVanRain/google_api","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RiverVanRain%2Fgoogle_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RiverVanRain%2Fgoogle_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RiverVanRain%2Fgoogle_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RiverVanRain%2Fgoogle_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RiverVanRain","download_url":"https://codeload.github.com/RiverVanRain/google_api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244577030,"owners_count":20475231,"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":["elgg","google"],"created_at":"2024-11-25T13:32:07.527Z","updated_at":"2026-05-05T06:35:18.198Z","avatar_url":"https://github.com/RiverVanRain.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Google API\n===============================\n![Elgg 5.0](https://img.shields.io/badge/Elgg-5.0-green.svg?style=flat-square)\n\nGoogle API, Client and Services for Elgg\n\n## Developers\n\n* Google JSON key dir:\n\n```php\n\nelgg_get_data_path() . 'google/google_key.json';\n\n```\n\n[How to get Google JSON credentials](https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account)\n\n* Google API Aliases\n\n```php\n\n$classMap = [\n    'Google\\\\Client' =\u003e 'Google_Client',\n    'Google\\\\Service' =\u003e 'Google_Service',\n    'Google\\\\AccessToken\\\\Revoke' =\u003e 'Google_AccessToken_Revoke',\n    'Google\\\\AccessToken\\\\Verify' =\u003e 'Google_AccessToken_Verify',\n    'Google\\\\Model' =\u003e 'Google_Model',\n    'Google\\\\Utils\\\\UriTemplate' =\u003e 'Google_Utils_UriTemplate',\n    'Google\\\\AuthHandler\\\\Guzzle6AuthHandler' =\u003e 'Google_AuthHandler_Guzzle6AuthHandler',\n    'Google\\\\AuthHandler\\\\Guzzle7AuthHandler' =\u003e 'Google_AuthHandler_Guzzle7AuthHandler',\n    'Google\\\\AuthHandler\\\\Guzzle5AuthHandler' =\u003e 'Google_AuthHandler_Guzzle5AuthHandler',\n    'Google\\\\AuthHandler\\\\AuthHandlerFactory' =\u003e 'Google_AuthHandler_AuthHandlerFactory',\n    'Google\\\\Http\\\\Batch' =\u003e 'Google_Http_Batch',\n    'Google\\\\Http\\\\MediaFileUpload' =\u003e 'Google_Http_MediaFileUpload',\n    'Google\\\\Http\\\\REST' =\u003e 'Google_Http_REST',\n    'Google\\\\Task\\\\Retryable' =\u003e 'Google_Task_Retryable',\n    'Google\\\\Task\\\\Exception' =\u003e 'Google_Task_Exception',\n    'Google\\\\Task\\\\Runner' =\u003e 'Google_Task_Runner',\n    'Google\\\\Collection' =\u003e 'Google_Collection',\n    'Google\\\\Service\\\\Exception' =\u003e 'Google_Service_Exception',\n    'Google\\\\Service\\\\Resource' =\u003e 'Google_Service_Resource',\n    'Google\\\\Exception' =\u003e 'Google_Exception',\n];\n\n```\n\n### Usage\n\nAdd Google API key and import Google JSON credentials.\n\nNow you can use Google services.\n\nHere is an example for Google Service Sheets:\n\n```php\n\n\t// Get the API client and construct the service object.\n\t$api_key = elgg_get_plugin_setting('api_key','google_api');\n\t\n\t// Initialize Google Client\n\t$client = new \\Google_Client();\n\t$client-\u003esetDeveloperKey($api_key);\n\t$client-\u003esetApplicationName('my_app');\n\t$client-\u003esetScopes(\\Google_Service_Sheets::SPREADSHEETS);\n\t$client-\u003esetAccessType('offline');\t\n\t\n\t// Authorize Google Client\n\t$data = elgg_get_data_path() . 'google/google_key.json';\n\t$client-\u003esetAuthConfig(json_decode($data, true));\n\t\n\t// Initialize Google service\n\t$service = new \\Google_Service_Sheets($client);\n\t\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frivervanrain%2Fgoogle_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frivervanrain%2Fgoogle_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frivervanrain%2Fgoogle_api/lists"}