All API calls require authentication. To obtain an authentication token you will require a username, password and your security key (this was emailed to you).
cURL Python JavaScript Postman
Copy curl -d "username=<your_username>&password=<your_password>&key=<your_security_key>" \
-X POST https://auth.powerpointgeneratorapi.com/v1.0/token/create
Copy import requests
url = "https://auth.powerpointgeneratorapi.com/v1.0/token/create"
payload={'username': '<your_username>', 'password': '<your_password>', 'key': '<your_security_key>'}
headers = {'Content-Type': 'application/x-www-form-urlencoded'}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
Copy var formdata = new FormData();
formdata.append("username", "<your_username>");
formdata.append("password", "<your_password>");
formdata.append("key", "<your_security_key>");
var requestOptions = {
method: 'POST',
body: formdata,
redirect: 'follow'
};
fetch("https://auth.powerpointgeneratorapi.com/v1.0/token/create", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
Select form-data
in the Body
tab
Populate the KEY
and VALUE
with your username, password and key
Hit Send
to get your Bearer Token