v1 Authorization (deprecated)
Authenticating with Celantur Cloud API
How to get your authorization token
import requests
def main():
credentials = {'username': 'xxx', 'password': 'xxx'}
response = requests.post(
'https://api.celantur.com/v1/signin/',
json=credentials,
headers={'Content-Type':'application/json'}
)
auth_token = response.json()['AuthenticationResult']['AccessToken']
status = requests.get(
'https://api.celantur.com/v1/file/' + file_id + '/status',
headers={'Authorization': auth_token}
) Last updated