Esempio n. 1
0
 def testnearby(self):
     accounts.nearby(45, 50, dwollaparse='dwolla')
     accounts.r._get_without_token.assert_any_call(
         '/users/nearby', {
             'latitude': 45,
             'client_secret': 'SOME ID',
             'longitude': 50,
             'client_id': 'SOME ID'
         }, {'dwollaparse': 'dwolla'})
Esempio n. 2
0
# 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
# }]


# Example 5: Get the auto-withdrawal status of the user
# associated with the current OAuth token.

print(accounts.autowithdrawalstatus())
Esempio n. 3
0
 def testnearby(self):
     accounts.nearby(45, 50, dwollaparse='dwolla')
     accounts.r._get_without_token.assert_any_call('/users/nearby', {'latitude': 45, 'client_secret': 'SOME ID', 'longitude': 50, 'client_id': 'SOME ID'}, {'dwollaparse': 'dwolla'})
Esempio n. 4
0
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
# }]

# Example 5: Get the auto-withdrawal status of the user
# associated with the current OAuth token.

print(accounts.autowithdrawalstatus())
# Return:
Esempio n. 5
0
 def testnearby(self):
     accounts.nearby(45, 50)
     accounts.r._get.assert_any_call('/users/nearby', {'latitude': 45, 'client_secret': 'SOME ID', 'longitude': 50, 'client_id': 'SOME ID'})