def testbalance(self): accounts.balance(alternate_token='AN OAUTH TOKEN', dwollaparse='dwolla') accounts.r._get.assert_any_call('/balance', {}, { 'alternate_token': 'AN OAUTH TOKEN', 'dwollaparse': 'dwolla' })
print(accounts.basic('812-202-3784')) # Return: {u'Latitude': 0, u'Id': u'812-202-3784', u'Longitude': 0, u'Name': u'David Stancu'} # Example 2: Get full account information for # the user associated with the current OAuth token print(accounts.full()) # Return: # {u'City': u'New York', u'Name': u'David Stancu', u'Longitude': 0, u'State': u'NY', u'Latitude': 0, u'Type': u'Personal', u'Id': u'812-202-3784'} # Example 3: Get the balance of the account for # the user associated with the current OAuth token print(accounts.balance()) # Return: # 21.97 # Example 4: Get users near a certain geographical # location print(accounts.nearby(40.7127, 74.0059)) # Return: # [{ # "Id": "812-687-7049", # "Image": "https://www.dwolla.com/avatars/812-687-7049", # "Name": "Gordon Zheng", # "Latitude": 40.708448, # "Longitude": -74.014429,
print accounts.basic('812-202-3784') # Return: {u'Latitude': 0, u'Id': u'812-202-3784', u'Longitude': 0, u'Name': u'David Stancu'} # Example 2: Get full account information for # the user associated with the current OAuth token print accounts.full() # Return: # {u'City': u'New York', u'Name': u'David Stancu', u'Longitude': 0, u'State': u'NY', u'Latitude': 0, u'Type': u'Personal', u'Id': u'812-202-3784'} # Example 3: Get the balance of the account for # the user associated with the current OAuth token print accounts.balance() # Return: # 21.97 # Example 4: Get users near a certain geographical # location print accounts.nearby(40.7127, 74.0059) # Return: # [{ # "Id": "812-687-7049", # "Image": "https://www.dwolla.com/avatars/812-687-7049", # "Name": "Gordon Zheng", # "Latitude": 40.708448, # "Longitude": -74.014429,
def testbalance(self): accounts.balance(alternate_token='AN OAUTH TOKEN', dwollaparse='dwolla') accounts.r._get.assert_any_call('/balance', {}, {'alternate_token':'AN OAUTH TOKEN', 'dwollaparse':'dwolla'})
# their Dwolla ID print(accounts.basic('812-202-3784')) # Return: {u'Latitude': 0, u'Id': u'812-202-3784', u'Longitude': 0, u'Name': u'David Stancu'} # Example 2: Get full account information for # the user associated with the current OAuth token print(accounts.full()) # Return: # {u'City': u'New York', u'Name': u'David Stancu', u'Longitude': 0, u'State': u'NY', u'Latitude': 0, u'Type': u'Personal', u'Id': u'812-202-3784'} # Example 3: Get the balance of the account for # the user associated with the current OAuth token print(accounts.balance()) # Return: # 21.97 # Example 4: Get users near a certain geographical # location print(accounts.nearby(40.7127, 74.0059)) # Return: # [{ # "Id": "812-687-7049", # "Image": "https://www.dwolla.com/avatars/812-687-7049", # "Name": "Gordon Zheng", # "Latitude": 40.708448, # "Longitude": -74.014429, # "Delta": 114.72287700000001
def testbalance(self): accounts.balance() accounts.r._get.assert_any_call('/balance', {'oauth_token': 'AN OAUTH TOKEN'}, dwollaparse='dwolla')