{"id":15023485,"url":"https://github.com/majksa-ih/googledriveapi","last_synced_at":"2025-04-09T19:54:39.992Z","repository":{"id":37514618,"uuid":"192945334","full_name":"majksa-ih/GoogleDriveApi","owner":"majksa-ih","description":"Operates with Google Drive. For ex. upload, download, create, move, list files and folders.","archived":false,"fork":false,"pushed_at":"2023-04-19T19:21:38.000Z","size":4224,"stargazers_count":10,"open_issues_count":4,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T19:54:15.639Z","etag":null,"topics":["google","google-drive","google-drive-api","google-drive-uploader","php","php-5","php-5-6","php-library"],"latest_commit_sha":null,"homepage":"http://www.majksa.cz","language":"PHP","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/majksa-ih.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-20T15:33:03.000Z","updated_at":"2024-11-15T11:38:57.000Z","dependencies_parsed_at":"2025-02-15T18:42:31.338Z","dependency_job_id":null,"html_url":"https://github.com/majksa-ih/GoogleDriveApi","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majksa-ih%2FGoogleDriveApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majksa-ih%2FGoogleDriveApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majksa-ih%2FGoogleDriveApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majksa-ih%2FGoogleDriveApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/majksa-ih","download_url":"https://codeload.github.com/majksa-ih/GoogleDriveApi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103913,"owners_count":21048245,"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","google-drive","google-drive-api","google-drive-uploader","php","php-5","php-5-6","php-library"],"created_at":"2024-09-24T19:59:07.092Z","updated_at":"2025-04-09T19:54:39.958Z","avatar_url":"https://github.com/majksa-ih.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Drive Api\n\n* Author: Majksa\n* Version: 1.0.0\n* PHP version: 5.6+\n\n## Usage\n\n1. Go to [https://console.developers.google.com/](https://console.developers.google.com/)\n2. Create new project\n3. Create O2Auth credentials with redirect uri and download them\n4. Load using `include '/path/to/GoogleDriveApi/GoogleDriveApi.php';`\n5. When creating `new GoogleDriveApi()` send path to credentials as the parameter.\n\n## Methods\n\n* log out `logOut()`\n* get email `getEmail()`\n* list files `listFiles($fields = \"files(id, name, owners)\")`\n* create folder `createFolder($name, $parentId = \"root\")`\n* upload file `uploadFile($fullName, $mimeType, $fullPath, $parentId = \"root\")`\n* upload file basic `uploadFileBasic($name, $type, $extension, $pathToFileDir, $parentId = \"root\")`\n* create file `createFile($fullName, $mimeType, $parentId = \"root\")`\n* create file basic `createFileBasic($name, $type, $extension, $parentId = \"root\")`\n* move file `moveFile($fileId, $folderId)`\n* download file `downloadFile($fileId)`\n* test files owners `testFilesOwners()`\n* set verified owners `setVerifiedOwner($ids)`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmajksa-ih%2Fgoogledriveapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmajksa-ih%2Fgoogledriveapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmajksa-ih%2Fgoogledriveapi/lists"}