-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnessie_urls.py
37 lines (26 loc) · 1.69 KB
/
nessie_urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# accounts
def url_get_all_accounts(api_key):
return "http://api.reimaginebanking.com/accounts?key={}".format(api_key)
def url_get_account_aid(account_id, api_key):
return "http://api.reimaginebanking.com/accounts/{}?key={}".format(account_id, api_key)
def url_get_account_cid(customer_id, api_key):
return "http://api.reimaginebanking.com/customers/{}/accounts?key={}".format(customer_id, api_key)
def url_account_create(account_id, api_key):
return "http://api.reimaginebanking.com/customers/{}/accounts?key={}".format(customer_id, api_key)
def url_account_modify(account_id, api_key):
return "http://api.reimaginebanking.com/accounts/{}?key={}".format(account_id, api_key)
def url_account_delete(account_id, api_key):
return "http://api.reimaginebanking.com/accounts/{}?key={}".format(account_id, api_key)
# purchases
def url_get_purchases_aid(account_id, api_key):
return "http://api.reimaginebanking.com/accounts/{}/purchases?key={}".format(account_id, api_key)
def url_get_purchases_mid(merchant_id, api_key):
return "http://api.reimaginebanking.com/merchants/{}/purchases?key={}".format(merchant_id, api_key)
def url_get_purchase_pid(purchase_id, api_key):
return "http://api.reimaginebanking.com/purchases/{}?key={}".format(purchase_id, api_key)
def url_purchase_aid(account_id, api_key):
return "http://api.reimaginebanking.com/accounts/{}/purchases?key={}".format(account_id, api_key)
def url_purchase_modify(purchase_id, api_key):
return "http://api.reimaginebanking.com/purchases/{}?key={}".format(purchase_id, api_key)
def url_purchase_delete(purchase_id, api_key):
return "http://api.reimaginebanking.com/purchases/{}?key={}".format(purchase_id, api_key)