You will need two things in order to get your token.
import requests
import json
key = "<YOUR_KEY>"
user = "<YOUR_USER>"
passwd = "<YOUR_PASSWORD>"
url = 'https://api.pptxbuilder.com/api/auth/token'
body = json.dumps({'key': key})
headers = {'Content-Type': 'application/json'}
response = requests.post(url, data=body, headers=headers,
auth=(user, passwd))
if response.status_code != 200:
response_msg = response.json()
print(response_msg['error'])
else:
token = response.headers['Authentication-Token']
content = response.content
print(token)
If you need more detailed information please take a look at the API Reference for this endpoint: