def testget(self): request.get({'another': 'parameter'}) request.r._get.assert_any_call('/requests', params={'oauth_token': 'AN OAUTH TOKEN', 'another': 'parameter'})
constants.client_id = "zbDwIC0dWCVU7cQtfvGwVwVjvxwQfjaTgkVi+FZOmKqPBzK5JG" constants.client_secret = "ckmgwJz9h/fZ09unyXxpupCyrmAMe0bnUiMHF/0+SDaR9RHe99" constants.access_token = "aK6DdCVlIsR1hKvTbp8VCwnvci8cwaTLlW9edtbHJVmKoopnoe" constants.pin = 1234 # Example 1: Request $5 from 812-740-3809 print request.create('812-740-3809', 5.00) # Return: # 1470 (request ID) # Example 2: Get all pending requests from the user # associated with the current OAuth token. print request.get() # Return: # [ # { # "Id": 640, # "Source": { # "Id": "812-693-9484", # "Name": "Spencer Hunter", # "Type": "Dwolla", # "Image": null # }, # "Destination": { # "Id": "812-706-1396", # "Name": "Jane Doe", # "Type": "Dwolla", # "Image": null
constants.sandbox = False constants.client_id = "zbDwIC0dWCVU7cQtfvGwVwVjvxwQfjaTgkVi+FZOmKqPBzK5JG" constants.client_secret = "ckmgwJz9h/fZ09unyXxpupCyrmAMe0bnUiMHF/0+SDaR9RHe99" constants.access_token = "aK6DdCVlIsR1hKvTbp8VCwnvci8cwaTLlW9edtbHJVmKoopnoe" constants.pin = 1234 # Example 1: Request $5 from 812-740-3809 print(request.create('812-740-3809', 5.00)) # Return: # 1470 (request ID) # Example 2: Get all pending requests from the user # associated with the current OAuth token. print(request.get()) # Return: # [ # { # "Id": 640, # "Source": { # "Id": "812-693-9484", # "Name": "Spencer Hunter", # "Type": "Dwolla", # "Image": null # }, # "Destination": { # "Id": "812-706-1396", # "Name": "Jane Doe", # "Type": "Dwolla", # "Image": null
constants.client_id = "zbDwIC0dWCVU7cQtfvGwVwVjvxwQfjaTgkVi+FZOmKqPBzK5JG" constants.client_secret = "ckmgwJz9h/fZ09unyXxpupCyrmAMe0bnUiMHF/0+SDaR9RHe99" constants.access_token = "aK6DdCVlIsR1hKvTbp8VCwnvci8cwaTLlW9edtbHJVmKoopnoe" constants.pin = 1234 # Example 1: Request $5 from 812-740-3809 print(request.create('812-740-3809', 5.00)) # Return: # 1470 (request ID) # Example 2: Get all pending requests from the user # associated with the current OAuth token. print(request.get()) # Return: # [ # { # "Id": 640, # "Source": { # "Id": "812-693-9484", # "Name": "Spencer Hunter", # "Type": "Dwolla", # "Image": null # }, # "Destination": { # "Id": "812-706-1396", # "Name": "Jane Doe", # "Type": "Dwolla", # "Image": null
def testget(self): request.get(another='parameter') request.r._get.assert_any_call('/requests', {'oauth_token': 'AN OAUTH TOKEN', 'another': 'parameter'}, dwollaparse='dwolla')