Official Clojure Wrapper for Dwolla's API
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 1 commit ahead of andrewhavck:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
src/dwolla_sdk_clojure
test/dwolla_sdk_clojure
.gitignore
.travis.yml
README.md
project.clj

README.md

dwolla-sdk-clojure

Deprecation warning

This repository is for an old version of our API and is no longer actively maintained. Please use our new SDKs.

No Maintenance Intended

Build Status

A simple Clojure library that wraps the Dwolla API.

Installation

dwolla-sdk-clojure is available as a Maven artifact from Clojars:

[dwolla-sdk-clojure "0.1.3"]

Usage

The main api functionality is provided by the dwolla-sdk-clojure.core namespace.

Require it in the REPL:

(require '[dwolla-sdk-clojure.core :as dwolla])

Require it in your application:

(ns my-app.core
  (:require [dwolla-sdk-clojure.core :as dwolla]))

The client is a thin interface that requires only an endpoint and message

;An example send POST request:
(dwolla/api :send {:oauth_token "" :pin "" :destinationId "" :amount ""})

;An account info GET request:
(dwolla/api :account_info {:oauth_token ""})

;A nearby GET request:
(dwolla/api :nearby {:client_id "" :client_secret "" :lat "" :long ""})

All results are returned as a map:

{:Response nil, :Message "Invalid access token.", :Success false, :Request-time 321 :Status 200}

;If the endpoint does not exist a generic error message is returned
{:Response nil, :Message "Invalid endpoint." :Success false :Request-time 0 :Status nil}

Support

License

Copyright © 2015 Dwolla

Released under the MIT License: http://www.opensource.org/licenses/mit-license.php