Example #1
0
 def testinfo(self):
     fundingsources.info('123456',
                         alternate_token='AN OAUTH TOKEN',
                         dwollaparse='dwolla')
     fundingsources.r._get.assert_any_call('/fundingsources/123456', {}, {
         'alternate_token': 'AN OAUTH TOKEN',
         'dwollaparse': 'dwolla'
     })
 def testinfo(self):
     fundingsources.info('123456')
     fundingsources.r._get.assert_any_call('/fundingsources/123456', {'oauth_token': 'AN OAUTH TOKEN'}, dwollaparse='dwolla')
Example #3
0
  The following is a quick-start example for the funding-source endpoints.
'''

from dwolla import fundingsources, constants

# Configure the library (change these)
constants.sandbox=False

constants.client_id = "zbDwIC0dWCVU7cQtfvGwVwVjvxwQfjaTgkVi+FZOmKqPBzK5JG"
constants.client_secret = "ckmgwJz9h/fZ09unyXxpupCyrmAMe0bnUiMHF/0+SDaR9RHe99"
constants.access_token = "aK6DdCVlIsR1hKvTbp8VCwnvci8cwaTLlW9edtbHJVmKoopnoe"
constants.pin = 1234

# Example 1: Get information about a funding ID

print(fundingsources.info('12345678'))
# Return:
# {
# "Id": "12345678",
# "Name": "Donations Payout Account - Checking",
# "Type": "Checking",
# "Verified": true,
# "ProcessingType": "FiSync"
# }


# Example 2: Get a list of funding sources associated
# with the account under the current OAuth token

print(fundingsources.get())
# Return:
Example #4
0
  The following is a quick-start example for the funding-source endpoints.
'''

from dwolla import fundingsources, constants

# Configure the library (change these)
constants.sandbox = False

constants.client_id = "zbDwIC0dWCVU7cQtfvGwVwVjvxwQfjaTgkVi+FZOmKqPBzK5JG"
constants.client_secret = "ckmgwJz9h/fZ09unyXxpupCyrmAMe0bnUiMHF/0+SDaR9RHe99"
constants.access_token = "aK6DdCVlIsR1hKvTbp8VCwnvci8cwaTLlW9edtbHJVmKoopnoe"
constants.pin = 1234

# Example 1: Get information about a funding ID

print(fundingsources.info('12345678'))
# Return:
# {
# "Id": "12345678",
# "Name": "Donations Payout Account - Checking",
# "Type": "Checking",
# "Verified": true,
# "ProcessingType": "FiSync"
# }

# Example 2: Get a list of funding sources associated
# with the account under the current OAuth token

print(fundingsources.get())
# Return:
# [