Adding 2 api key about animals

pull/4/head
daffainfo 2021-11-06 10:56:35 +07:00
parent b143457096
commit d197b59dd3
5 changed files with 129 additions and 2 deletions

73
Animals/Petfinder.md Normal file
View File

@ -0,0 +1,73 @@
# [Petfinder](https://www.petfinder.com/developers/v2/docs/)
## __Description__
Petfinder is dedicated to helping pets find homes, another resource to get pets adopted
## __Example Request__
* Curl
```
curl -d "grant_type=client_credentials&client_id=CLIENT-ID&client_secret=CLIENT-SECRET" https://api.petfinder.com/v2/oauth2/token
```
* Raw
```
POST /v2/oauth2/token HTTP/1.1
Host: api.petfinder.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 81
grant_type=client_credentials&client_id=CLIENT-ID&client_secret=CLIENT-SECRET
```
## __Response__
* Success
```
{
"token_type":"Bearer",
"expires_in":3600,
"access_token":"eyJ0eXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
```
* Error
```
{
"type": "https://www.petfinder.com/developers/v2/docs/errors/ERR-401/",
"status": 401,
"title": "invalid_client",
"detail": "Client authentication failed",
"errors": [
{
"code": "invalid_client",
"title": "Unauthorized",
"message": "Client authentication failed",
"details": "Client authentication failed",
"href": "http://developer.petfinder.com/v2/errors.html#invalid_client"
}
],
"hint": null
}
```
## __Regex__
* Client ID / API Key
```
[a-zA-Z0-9]{50}
```
* Client Secret
```
[a-zA-Z0-9]{40}
```
## __Example key__
* Client ID / API Key
```
RbvMnSlfD0dRDQ8WDlDEF5cxnvkRlRgf7fuJQBTP5pSd8h8QJv
7fk3hDPqViMBGWbZ3n3fDp1Bekt329ONQyLjvaYXK7iOz7SS6o
XssuwSJuJ3P76sEoW6SK8cBtwdPcTUHAL9yd6oL40SeWkCKUCH
```
* Secret Token
```
fpDXlS9qQaDrWyJyGD4yWNPA2zWo8mk1jLfp4Tu8
LjDeOSRsBeMAfsTEpDxQPbEbu35M3qsNWfD9rsyw
WpwIMbmDPIe60sMF37BHX5JLdldTkMkVhupEcQoF
```

View File

@ -3,4 +3,5 @@ list of Animals API
## Index
* [IUCN](IUCN.md)
* [TheCatApi](TheCatApi.md)
* [TheCatApi](TheCatApi.md)
* [TheDogApi](TheDogApi.md)

50
Animals/TheDogApi.md Normal file
View File

@ -0,0 +1,50 @@
# [TheDogApi](https://docs.thedogapi.com/)
## __Description__
Pictures of dogs from Tumblr
## __Example Request__
* Curl
```
curl --request GET \
--url https://api.thedogapi.com/v1/votes \
--header 'x-api-key: DEMO-API-KEY'
```
* Raw
```
GET /v1/votes HTTP/1.1
Host: api.thedogapi.com
x-api-key: DEMO-API-KEY
```
## __Response__
* Success
```
[{
"id": 31098,
"image_id": "43u",
"sub_id": null,
"created_at": "2018-10-24T08:36:13.000Z",
"value": 1,
"country_code": null
}]
```
* Error
```
{
"message": "AUTHENTICATION_ERROR - no valid x-api-key in header",
"status": 401,
"level": "info"
}
```
## __Regex__
```
[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[0-9a-f]{12}
```
## __Example API key__
```
da3ec69e-bdc3-8f07-b5e3-6521c026d4be
```

View File

@ -2,4 +2,5 @@
List of Authentication API
## Index
* [Micro User Service](Micro%20User%20Service.md)
* [Micro User Service](Micro%20User%20Service.md)
* [Stytch](Stytch.md)

View File

@ -17,7 +17,9 @@ Detailed information about API
<summary>Animals</summary>
* [IUCN](Animals/IUCN.md)
* [Petfinder](Animals/Petfinder.md)
* [TheCatApi](Animals/TheCatApi.md)
* [TheDogApi](Animals/TheDogApi.md)
</details>
<details>
<summary>Anime</summary>