Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added tests. updated comments and readme. updated parameter order
- Loading branch information
Showing
29 changed files
with
2,945 additions
and
66 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
var dwolla = require('./lib/dwolla'); | ||
|
||
// set your dwolla application ids | ||
var client_id = process.env.DWOLLA_CLIENT_ID; | ||
var client_secret = process.env.DWOLLA_CLIENT_SECRET; | ||
if (client_id === undefined) return 'Missing DWOLLA_CLIENT_ID'; | ||
if (client_secret === undefined) return 'Missing DWOLLA_CLIENT_SECRET'; | ||
|
||
var account_id = '812-728-8151'; //use valid id | ||
dwolla.basicAccountInfo(client_id, client_secret, account_id, function(err, data) { | ||
if (err) { console.log(err); } | ||
console.log(data); | ||
}); | ||
|
||
var lat = '41.58454600'; | ||
var lon = '-93.63416700'; | ||
dwolla.nearby(client_id, client_secret, lat, lon, function(err, data) { | ||
if (err) { console.log(err); } | ||
console.log(data.length); | ||
}); | ||
|
||
// set a valid user oauth token here | ||
var oauth_token = process.env.DWOLLA_OAUTH_TOKEN; | ||
if (oauth_token === undefined) return 'Missing DWOLLA_OAUTH_TOKEN'; | ||
|
||
dwolla.transactions(oauth_token, function(err, data) { | ||
if (err) { console.log(err); } | ||
console.log(data); | ||
}); | ||
|
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
Oops, something went wrong.