The Dwolla API wrapper for Java and Android. See the DwollaServiceAsync and DwollaServiceSync classes for the supported endpoints. It usees the Retrofit REST client by Square. For more information, see Retrofit's samples.
dwolla-java-sdk is published to Maven Central. To include it in a Maven project, include the following in pom.xml:
<dependency>
<groupId>com.dwolla</groupId>
<artifactId>dwolla-java-sdk</artifactId>
<version>1.1.8</version>
</dependency>For Gradle (Android's new default build automator), include the following in build.gradle:
dependencies {
classpath 'com.dwolla:dwolla-java-sdk:1.1.8'
}
- Open App.java and take a look at the commented code
- If you haven't already, register for a Dwolla account and follow the Getting Started documentation to create an application and generate an OAuth token using your new application
- Enter your application key, secret, OAuth token, and PIN into the appropriate fields in App.java
- If you don't have it already, download Maven and follow the installation instructions here
git clone git@github.com:Dwolla/dwolla-java.gitcd dwolla-java-sdk/samplesmvn packagejava -cp target/dwolla-example-1.0-SNAPSHOT.jar com.example.App- You should see "Reflector by Dwolla" and two transaction Ids printed to the terminal
- Dwolla API | api@dwolla.com | @DwollaAPI
- Rocky Warren | rocky@dwolla.com | @therockstorm
Copyright © 2013 Dwolla
