1 | <?php declare(strict_types=1); |
||
23 | class KitsuRequestBuilder extends APIRequestBuilder { |
||
24 | |||
25 | /** |
||
26 | * The base url for api requests |
||
27 | * @var string $base_url |
||
28 | */ |
||
29 | protected $baseUrl = "https://kitsu.io/api/edge/"; |
||
30 | |||
31 | /** |
||
32 | * HTTP headers to send with every request |
||
33 | * |
||
34 | * @var array |
||
35 | */ |
||
36 | protected $defaultHeaders = [ |
||
37 | 'User-Agent' => "Tim's Anime Client/4.0", |
||
38 | 'Accept-Encoding' => 'application/vnd.api+json', |
||
39 | 'Content-Type' => 'application/vnd.api+json', |
||
40 | 'client_id' => 'dd031b32d2f56c990b1425efe6c42ad847e7fe3ab46bf1299f05ecd856bdb7dd', |
||
41 | 'client_secret' => '54d7307928f63414defd96399fc31ba847961ceaecef3a5fd93144e960c0e151', |
||
42 | ]; |
||
43 | |||
44 | /** |
||
45 | * Set the request body |
||
46 | * |
||
47 | * @param array|FormBody|string $body |
||
48 | * @return self |
||
49 | */ |
||
50 | public function setJsonBody(array $body): self |
||
55 | } |
||
|
|||
56 |
This check marks files that end in a newline character, i.e. an empy line.