A Dwolla API wrapper in Ruby.
This gem was created based on my work at split(able) (http://www.splitable.com) team when integrating with Dwolla. Thanks for all your support guys!
gem install dwolla
- View Source on GitHub (https://github.com/jeffersongirao/dwolla)
- Report Issues on GitHub (https://github.com/jeffersongirao/dwolla/issues)
- Contacts Nearby
- Transactions Listing
- Transactions Details by ID
- Transactions Stats
- Send and Request Transactions with Other Id types (Facebook, Twitter, or Phone.)
( Auth Scope Required: accountinfofull )
user = Dwolla::User.me(ACCESS_TOKEN).fetch
( Auth Scope Required : none )
client = Dwolla::Client.new(CLIENT_ID, SECRET)
user = client.user(ACCOUNT_ID) # Dwolla account identifier or email address of the Dwolla account.
( Auth Scope Required : balance )
user = Dwolla::User.me(ACCESS_TOKEN)
user.balance
( Auth Scope Required : contacts)
user = Dwolla::User.me(ACCESS_TOKEN)
# limit default is 10
# max limit is 200
# type default is "Dwolla"
# valid types are "All", "Twitter", "Facebook", "LinkedIn" and "Dwolla"
user.contacts(:search => "Bob", :type => "Dwolla", :limit => 5)
( Auth Scope Required: send )
user = Dwolla::User.me(ACCESS_TOKEN)
other_user_id = '812-111-1111'
pin = '1234'
amount = 200
type = 'dwolla'
description = "For that lovely dinner"
user.send_money_to(other_user_id, amount, pin, type, description)
user = Dwolla::User.me(ACCESS_TOKEN)
other_user_email = 'user@example.com'
pin = '1234'
amount = 200
type = 'email'
description = "Just to say thanks"
user.send_money_to(other_user_email, amount, pin, type, description)
( Auth Scope Required: request )
user = Dwolla::User.me(ACCESS_TOKEN)
other_user_id = '812-111-1111'
pin = '1234'
amount = 200
type = 'dwolla'
description = "Gotta make rent"
user.request_money_from(other_user_id, amount, pin, type, description)
user = Dwolla::User.me(ACCESS_TOKEN)
other_user_email = 'user@example.com'
pin = '1234'
amount = 200
type = 'email'
description = "Awesome pizza party"
user.request_money_from(other_user_email, amount, pin, type, description)