Set Application Key/Secret in java Swagger


(Archit Khosla) #1

Hi,

I am trying to use the Java Swagger API https://github.com/Dwolla/dwolla-swagger-java

I do see a setApiKey function

ApiClient a = new ApiClient();
a.setApiKey();

but i dont see how I can set the secret. I do not want to keep using the Access Token as they expire in 60 mins.

This is what i want to achieve via the API:

  1. Send the auth url to user for signup.
  2. Use the returned code to fetch the account ID
  3. Make a payment to the account ID.

However, I am stuck at the first step itself.

Thanks
Archit


(Cory Anderson) #2