Skip to content

Commit

Permalink
Merge pull request #754 from ryanobeirne/immich-api-headers
Browse files Browse the repository at this point in the history
Add api headers to test
  • Loading branch information
mvdkleijn committed Jul 6, 2024
2 parents 7ab5984 + d735e62 commit 651f3bf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Immich/Immich.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ public function __construct()

public function test()
{
$test = parent::appTest($this->url("server-info/statistics"));
$attrs = [
"headers" => [
"Accept" => "application/json",
"x-api-key" => $this->config->api_key,
],
];
$test = parent::appTest($this->url("server-info/statistics"), $attrs);
echo $test->status;
}

Expand Down

0 comments on commit 651f3bf

Please sign in to comment.