Register a new account
Register
Headers
Name
Type
Description
Request Body
Name
Type
Description
{"client_id":"<your client ID>","api_key":"<your API Key>","secret_key":"<your client secret>","username":"<your email>","password":"<your password>"}{"registration":"failed","reason":"username already exists"}curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{"email": "<your-email>", "password": "<your-password>"}' "https://api.photoncommerce.com/api/v4/register" import requests
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
payload = {
'email':'your-email-address',
'password':'must-be-secure-and-valid-1'
}
response = requests.post('https://api.photoncommerce.com/api/v4/register', headers=headers, json=payload)
r = response.json()
try:
for key in r:
print(f'{key}: {r[key]}')
except:
print(f'Registration failed, response from API: {r}')
Last updated