2021-11-11 01:11:01 +00:00
|
|
|
id: api-petfinder
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Petfinder API Test
|
|
|
|
author: daffainfo
|
|
|
|
severity: info
|
2022-07-25 06:05:11 +00:00
|
|
|
description: Petfinder is dedicated to helping pets find homes, another resource to get pets adopted
|
2021-11-11 01:11:01 +00:00
|
|
|
reference:
|
|
|
|
- https://www.petfinder.com/developers/v2/docs/
|
2022-07-25 06:05:11 +00:00
|
|
|
- https://github.com/daffainfo/all-about-apikey/tree/main/petfinder
|
2021-11-11 01:11:01 +00:00
|
|
|
tags: token-spray,petfinder
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2021-11-11 01:11:01 +00:00
|
|
|
|
|
|
|
self-contained: true
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-11-11 01:11:01 +00:00
|
|
|
- raw:
|
2021-11-11 05:04:08 +00:00
|
|
|
- |
|
2021-11-11 05:02:13 +00:00
|
|
|
POST https://api.petfinder.com/v2/oauth2/token HTTP/1.1
|
2021-11-11 01:11:01 +00:00
|
|
|
Host: api.petfinder.com
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
Content-Length: 81
|
|
|
|
|
2021-11-12 12:00:28 +00:00
|
|
|
grant_type=client_credentials&client_id={{id}}&client_secret={{secret}}
|
2021-11-11 01:11:01 +00:00
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- '"token_type"'
|
|
|
|
- '"expires_in"'
|
|
|
|
- '"access_token"'
|
2021-11-11 05:02:13 +00:00
|
|
|
condition: and
|