API Token

Requirements

You will need two things in order to get your token.

  • Account credentials

  • Company key

Example Python

Bellow is an example on how to use them to get your API Token using requests library.

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)

Your API token is returned in the Headers.

"Authentication-Token" : "<your-token>"

If you need more detailed information please take a look at the API Reference for this endpoint: