{"id":15683771,"url":"https://github.com/pbrisbin/google-drive","last_synced_at":"2025-05-07T14:23:13.589Z","repository":{"id":23472192,"uuid":"26836761","full_name":"pbrisbin/google-drive","owner":"pbrisbin","description":"Google Drive API access","archived":false,"fork":false,"pushed_at":"2015-08-12T18:02:29.000Z","size":464,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-07T14:23:02.946Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/pbrisbin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-19T00:25:45.000Z","updated_at":"2020-02-29T15:18:43.000Z","dependencies_parsed_at":"2022-08-22T00:31:04.230Z","dependency_job_id":null,"html_url":"https://github.com/pbrisbin/google-drive","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbrisbin%2Fgoogle-drive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbrisbin%2Fgoogle-drive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbrisbin%2Fgoogle-drive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbrisbin%2Fgoogle-drive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pbrisbin","download_url":"https://codeload.github.com/pbrisbin/google-drive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252892755,"owners_count":21820697,"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":[],"created_at":"2024-10-03T17:08:34.012Z","updated_at":"2025-05-07T14:23:13.569Z","avatar_url":"https://github.com/pbrisbin.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Drive\n\nGoogle Drive API access\n\n## Stability\n\nAs we are still pre-1.0, I consider all types and interfaces freely changeable\nin any way accompanied by only a minor version bump.\n\nI apologize if this breaks your code. Update at your own risk.\n\n## Installation\n\n```\n% cabal install google-drive\n```\n\n## Usage\n\n```haskell\n-- Top level re-exports all the sub-modules\nimport Network.Google.Drive\n\nimport Control.Monad (forM_)\nimport Data.Conduit (($$+-))\n\nmain :: IO ()\nmain = do\n    -- See my separate google-oauth2 library\n    let token = undefined\n\n    -- runApi would return an Either ApiError a\n    -- runApi_ discards the a and raises any errors, useful in CLI apps\n    runApi_ token $ do\n        -- \"root\" is an alias for the ID of the Drive itself\n        Just root \u003c- getFile \"root\"\n\n        -- Note: This is already available as listVisibleContents\n        items \u003c- listFiles $ (fileId root) `qIn` Parents ?\u0026\u0026 Trashed ?= False\n\n        forM_ items $ \\item -\u003e do\n            let path = localPath item\n\n            downloadFile item ($$+- sinkFile path)\n```\n\nSee the tests and haddocks for more information.\n\n## Developing and Tests\n\n```\n% cp .env{.example,} # and edit it accordingly\n% cabal install --dependencies-only --enable-tests -j\n% cabal test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbrisbin%2Fgoogle-drive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpbrisbin%2Fgoogle-drive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbrisbin%2Fgoogle-drive/lists"}