Created
February 19, 2020 19:52
-
-
Save award28/efd8dad1a3b687f463cbef11c63c043e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
customerId = 'your customerId here' | |
apiKey = 'your apiKey here' | |
url = 'http://api.reimaginebanking.com/customers/{}/accounts?key={}'.format(customerId,apiKey) | |
payload = { | |
"type": "Savings", | |
"nickname": "test", | |
"rewards": 10000, | |
"balance": 10000, | |
} | |
# Create a Savings Account | |
response = requests.post( | |
url, | |
data=json.dumps(payload), | |
headers={'content-type':'application/json'}, | |
) | |
if response.status_code == 201: | |
print('account created') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment