Skip to content

Instantly share code, notes, and snippets.

@louislang
Created January 23, 2013 02:00
Show Gist options
  • Save louislang/4601165 to your computer and use it in GitHub Desktop.
Save louislang/4601165 to your computer and use it in GitHub Desktop.
Using Dwolla's Python Library, I am unable to add a new bank account. The library throws an "Access Token Empty" exception when add_funding_source is called. I've debugged the library thinking it may have been a problem with it, however it appears Dwolla's API is returning this message. I've checked, and rechecked that the data sent is what the …
# Include the Dwolla REST Client
from dwolla import DwollaUser
# Include any required keys
import _keys
# Instantiate a new Dwolla User client
# And, Sseed a previously generated access token
DwollaUser = DwollaUser(_keys.token)
routing_number = "*********"
account_number = "*********"
account_type = "Checking"
account_name = "Test Bank Account"
### This Throws an Exception: Access Token Empty ###
DwollaUser.add_funding_source(routing_number, account_number, account_type, account_name)
sources = DwollaUser.get_funding_sources()
print(sources)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment