google-drive: Google Drive API access

[ library, mit, unclassified ] [ Propose Tags ]

Interacting with the Google Drive API

Example usage:

import Control.Monad (void)
import Data.Conduit (($$+-))

import Network.Google.Drive

main :: IO ()
main = void $ runApi token $ do
    root <- getFile "root"
    items <- listFiles $ ParentEq (fileId root) `And` Untrashed

    mapM_ download items

  where
    download :: File -> Api ()
    download file = do
        let fd = fileData file

        case fileDownloadUrl $ fd of
            Nothing -> return ()
            Just url -> getSource (T.unpack url) [] $ \source ->
                source $$+- sinkFile (fileTitle fd)

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 0.4.1
Dependencies aeson (>=0.8 && <1.0), base (>=4 && <5), bytestring, conduit, conduit-extra (>=1.1.4 && <1.2), directory, filepath, http-conduit (>=2.1 && <2.2), http-types, mtl, random, resourcet, text, time [details]
License MIT
Author Pat Brisbin <pbrisbin@gmail.com>
Maintainer Pat Brisbin <pbrisbin@gmail.com>
Source repo head: git clone https://github.com/pbrisbin/google-drive
Uploaded by PatrickBrisbin at 2014-11-24T03:53:59Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 4179 total (15 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]