Last active
August 29, 2015 14:23
-
-
Save mach-kernel/5e00c822bb7a30e6b2bc to your computer and use it in GitHub Desktop.
it works!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OAuthServiceSync o = createOAuthService(); | |
TokenResponse t = o.getToken(new DwollaTypedBytes(new Gson(), | |
new TokenRequest("client_id", | |
"client_secret", "authorization_code", | |
"redirect", "code"))); | |
System.out.println("token: " + t.access_token); | |
System.out.println("refresh token: " + t.refresh_token); | |
TokenResponse r = o.refreshToken(new DwollaTypedBytes(new Gson(), | |
new TokenRequest("id", | |
"secret", "refresh_token", t.refresh_token))); | |
System.out.println("refreshed result: " + r.access_token); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment