✨ Add login/refresh token commands
This commit is contained in:
parent
bc3a42b501
commit
d0c3002bf1
3 changed files with 105 additions and 0 deletions
|
|
@ -26,6 +26,11 @@ class Trakt
|
|||
return Http::withHeaders($this->headers + $headers)->baseUrl('https://api.trakt.tv');
|
||||
}
|
||||
|
||||
public function requestNoAuth(array $headers = []): PendingRequest
|
||||
{
|
||||
return Http::withHeaders(['trakt-api-version' => 2] + $headers)->baseUrl('https://api.trakt.tv');
|
||||
}
|
||||
|
||||
public function syncHistory(WatchData $data, OutputInterface $output = null): Response
|
||||
{
|
||||
$output?->writeln(sprintf('Submitting %s to trakt with headers %s', json_encode($data->structuredData), json_encode($this->headers)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue