Compare the home with each animal
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/applications/{id}/match \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/applications/{id}/match', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/applications/{id}/match"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"animal_id": "<string>",
"rank": 123,
"findings": [
{
"key": "fenced_yard",
"level": "conflict",
"says": "<string>"
}
],
"conflicts": 123,
"questions": 123,
"unknowns": 123,
"animal_name": "<string>",
"species": "dog",
"placement_notes": "<string>"
}
]
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Adoption applications
Compare the home with each animal
Each animal on the application, in the applicant’s order of preference, read against the home the application describes: the fenced yard, apartment living, children, other pets, hours alone and experience. It names conflicts and does not score. A finding is only a conflict or ok when both sides were recorded; anything not recorded on the animal or the application is reported as unknown. Needs read on Animals.
GET
/
api
/
animals
/
applications
/
{id}
/
match
Compare the home with each animal
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/applications/{id}/match \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/applications/{id}/match', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/applications/{id}/match"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"animal_id": "<string>",
"rank": 123,
"findings": [
{
"key": "fenced_yard",
"level": "conflict",
"says": "<string>"
}
],
"conflicts": 123,
"questions": 123,
"unknowns": 123,
"animal_name": "<string>",
"species": "dog",
"placement_notes": "<string>"
}
]
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}