When you get a token the response should include
expires_in values. The
expires_in value is the number of seconds until your token expires. The
refresh_token value can be exchanged for a new token when your token expires. Exchanging a
refresh_token for a new token is similar to exchanging a
code for a token.
Here’s what it looks like in cURL:
$ CLIENT_ID=your_client_id CLIENT_SECRET=your_client_secret REFRESH_TOKEN=your_refresh_token
$ curl https://www.dwolla.com/oauth/v2/token -d "grant_type=refresh_token&refresh_token=$REFRESH_TOKEN&client_id=$CLIENT_ID&client_secret=$CLIENT_SECRET"
Hopefully that helps. Let us know if you have any other questions.