CrossClj

0.3.3 docs

SourceDocs



RECENT

    high-c

    Clojars

    Aug 19, 2014


    OWNER
    Banzai Inc.
    Provo, Utah
    support@teachbanzai.com
    teachbanzai.com

    Readme

    Index of all namespaces


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

    high-c

    A Clojure interface for communicating with 37signals’ Highrise API.

    Install

    Add to Lein’s dependencies:

    [[high-c "0.2.8"]]
    

    Usage

    (require '[high-c.core :as h])
    
    (def auth {:domain "banzai.highrisehq.com"
               :token "abcd1234"})
    
    (def companies (h/search (h/->Company) "Your Company" auth))
    
    user=> (#high_c.core.Company{:id "66091540", :name "Your Company", :phone-number nil})
    
    (h/url (first (companies)) auth)
    
    user=> "https://banzai.highrisehq.com/companies/66091540"
    
    (h/fetch-by-parent {:id 1} h/person auth)
    
    user=> (#high_c.core.Person{...}
    
    (h/fetch (h/->Person) 1 auth)
    
    (h/create (h/->Company) ...)
    
    (h/fetch-all (->Company) auth :offset 500)
    

    License

    Copyright © 2014 Banzai Inc.

    Distributed under the Eclipse Public License, the same as Clojure.