CrossClj

0.1.0 docs

SourceDocs



RECENT

    gd-io

    Clojars

    Jan 24, 2016


    OWNER
    Todd Stout
    Dallas TX USA
    todd.tstout@gmail.com

    Readme

    Index of all namespaces


    The README below is fetched from the published project artifact. Some relative links may be broken.

    gd-io

    A Clojure library providing limited access to Google Drive. The API is minimal, intended primarily for using Google Drive as a medium for storing backup data.

    Usage

    You will need to create OAUTH credentials. Look at https://github.com/SparkFund/google-apps-clj/blob/master/README.md for instructions on how to obtain credentials for your google drive account using the REPL.

    You will need to create an EDN file containing the following:

    {:client-id     "YOUR CLIENT ID"
     :client-secret "YOUR CLIENT SECRET"
     :redirect-uris ["urn:ietf:wg:oauth:2.0:oob" "http://localhost"]
     :auth-map      {:access-token  "YOUR ACCESS TOKEN"
                     :expires-in    3600
                     :refresh-token "YOUR REFRESH TOKEN"
                     :token-type    "Bearer"}}
    

    By default, this file is expected to be located at ~/.gd-io/gd-io-creds.clj.

    Uploading a file:

     (ns sample 
        (:require [gd-io.file :refer [mk-gdrive]]
    
    

    License

    Copyright © 2015 Todd Stout

    Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.