Make calls to SWIFT APIs is easy using SWIFT SDK. All you need to do is add the SWIFT SDKs as dependency when building your Java application through Maven or Gradle.
We built this demo Java application with Maven to show you how we are using it to make calls to SWIFT gpi APIs in the API Sandbox.
- Java 1.7 and above
- maven 3.5.* and above
Download SWIFT SDK from SWIFT Developer Portal, login is required for download.
Unpackage the zip file and install the dependency in your local .m2 repository.
$ install.sh
Update config/config-swift-sdk.yaml
with your application credentials, consumer-key & consumer-secret. Obtain from SWIFT Developer Portal by creating an app.
$ mvn clean install
$ java -Dlog4j.configuration=file:config/log4j.properties -jar target/gpi-v4-demo-1.0.0-SNAPSHOT-jar-with-dependencies.jar config/config-swift-sdk.yaml