Download single certificate PDF
curl --request GET \
--url https://api.dihub.com.br/certificate/{id}/download-pdf \
--header 'X-Api-Token: <api-key>'const options = {method: 'GET', headers: {'X-Api-Token': '<api-key>'}};
fetch('https://api.dihub.com.br/certificate/{id}/download-pdf', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.dihub.com.br/certificate/{id}/download-pdf"
headers = {"X-Api-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)"<string>"{
"message": "Unauthorized"
}{
"message": "Certificate not found"
}{
"message": "Internal Server Error"
}Endpoints
Baixar PDF de uma Certidão
Baixa o PDF de uma certidão específica gerada pela diligência
GET
/
certificate
/
{id}
/
download-pdf
Download single certificate PDF
curl --request GET \
--url https://api.dihub.com.br/certificate/{id}/download-pdf \
--header 'X-Api-Token: <api-key>'const options = {method: 'GET', headers: {'X-Api-Token': '<api-key>'}};
fetch('https://api.dihub.com.br/certificate/{id}/download-pdf', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.dihub.com.br/certificate/{id}/download-pdf"
headers = {"X-Api-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)"<string>"{
"message": "Unauthorized"
}{
"message": "Certificate not found"
}{
"message": "Internal Server Error"
}