Retrieve hormonal change Certificate
1 min
GET
https://developer.digitail.io/api/v1/pets/{id}/periodical-treatments/hormonal-change-certificate
Query Parameters
- clinic_idintegerrequiredDescription
Responses
200
- object
- dataobjectDescription
- idintegerExample
- namestring
- titlestringExample
- real_namestringExample
- printable_file_idstringExample
- vet_idstringExample
- patient_idstringExample
- pet_idstringExample
- tokenstring
- notified_atstringExample
- signed_atstringExample
- confirmed_atstringExample
- has_signature_shortcodeboolean
- has_fillable_inputsboolean
- typestring<form | certificate>Allowedformcertificate
- created_atstringExample
curl
curl --request GET \
--url 'https://developer.digitail.io/api/v1/pets/{id}/periodical-treatments/hormonal-change-certificate?clinic_id=integer' \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://developer.digitail.io/api/v1/pets/{id}/periodical-treatments/hormonal-change-certificate?clinic_id=integer", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://developer.digitail.io/api/v1/pets/{id}/periodical-treatments/hormonal-change-certificate?clinic_id=integer")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://developer.digitail.io/api/v1/pets/{id}/periodical-treatments/hormonal-change-certificate?clinic_id=integer"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// successful operation
{
"data": {
"id": 9,
"name": "",
"title": "Rabies Certificate For Daisy",
"real_name": "Rabies Certificate For Daisy.pdf",
"printable_file_id": "1086",
"vet_id": "1568",
"patient_id": "316635",
"pet_id": "316635",
"token": "",
"notified_at": "2021-11-19T13:40:23.000000Z",
"signed_at": "2021-11-19T13:40:23.000000Z",
"confirmed_at": "2021-11-19T13:40:23.000000Z",
"has_signature_shortcode": false,
"has_fillable_inputs": false,
"type": "",
"created_at": "2021-11-19T13:40:23.000000Z"
}
}