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.
1
import requests
2
import json
3
4
key = "<YOUR_KEY>"
5
user = "<YOUR_USER>"
6
passwd = "<YOUR_PASSWORD>"
7
8
url = 'https://api.pptxbuilder.com/api/auth/token'
9
10
body = json.dumps({'key': key})
11
headers = {'Content-Type': 'application/json'}
12
13
response = requests.post(url, data=body, headers=headers,
14
auth=(user, passwd))
15
16
if response.status_code != 200:
17
response_msg = response.json()
18
print(response_msg['error'])
19
else:
20
token = response.headers['Authentication-Token']
21
content = response.content
22
print(token)
Copied!
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:
Last modified 1yr ago
Copy link
Contents
Requirements