Пример #1
0
def transfer_funds(amount, src_token, dest_id, src_pin):
    amount = 0.02
    user = DwollaUser(src_token)
    print "About to make transfer... Balance: %.2f" % user.get_balance()
    transaction_id = user.send_funds(amount, dest_id, src_pin)
    print "Transfer complete... Balance: %.2f" % user.get_balance()
    mongo = MongoClient()
    db = mongo.credit_exchange
    transactions = db.transactions
    transactions.save(user.get_transaction(transaction_id))
Пример #2
0
# Include the Dwolla REST Client
from dwolla import DwollaClientApp, DwollaUser

# Include any required keys
import _keys

# Instantiate a new Dwolla User client
# And, Seed a previously generated access token
DwollaUser = DwollaUser(_keys.token)

'''
    EXAMPLE 1: 
      Get the Dwolla balance for the user
      with the given OAuth token
'''
balance = DwollaUser.get_balance()
print(balance)
Пример #3
0
# Include the Dwolla REST Client
from dwolla import DwollaClientApp, DwollaUser

# Include any required keys
import _keys

# Instantiate a new Dwolla User client
# And, Seed a previously generated access token
DwollaUser = DwollaUser(_keys.token)
'''
    EXAMPLE 1: 
      Get the Dwolla balance for the user
      with the given OAuth token
'''
balance = DwollaUser.get_balance()
print(balance)
Пример #4
0
#This is a simple code to get the balance remaining in the Dwolla Account using Python and Dwolla APIs
# @Author:: Akshay Ratan <*****@*****.**>
from dwolla import DwollaUser
Dwolla = DwollaUser('OAUTH_TOKEN')
print Dwolla.get_balance()   #Dwolla Python package has this command