예제 #1
0
import dwolla


KEY = 'key goes here'
SECRET = 'secret goes here'
TOKEN = 'token goes here'

# initialize dwolla
dwolla.init(KEY, SECRET, TOKEN)

"""
 Part 1: Grab stats for user associated to the TOKEN
"""
stats = dwolla.Transactions.stats()

print stats.get('Response')

# Learn more about transaction status at https://developers.dwolla.com/dev/docs/transactions/stats

"""
    Part 2: Grab all transactions for a user
"""
transactions = dwolla.Transactions.all()

print transactions.get('Response')

"""
Part 3: Grab detailed info about a transaction for a user
"""

transaction = dwolla.Transactions.retrieve(transactions.get('Response')[0]['Id']) 
예제 #2
0
 def setUp(self):
     #: First thing first, initialize app credentials
     #: Note: OAUTH_TOKEN is optional
     dwolla.init(CLIENT_ID, CLIENT_SECRET, OAUTH_TOKEN)