import requests
url = "https://api.pdfshift.io/v3/templates/{slug}.html"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)"<html>...</html>"Returns the raw HTML content of the template.
import requests
url = "https://api.pdfshift.io/v3/templates/{slug}.html"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)"<html>...</html>"HTML content
The response is of type string.