First code for Spectre login and import routine.

This commit is contained in:
James Cole
2018-05-14 20:21:00 +02:00
parent a9c8c8384d
commit 9f26757e8a
8 changed files with 286 additions and 35 deletions

View File

@@ -73,4 +73,16 @@ class Token extends SpectreObject
return $this->token;
}
/**
*
*/
public function toArray(): array
{
return [
'connect_url' => $this->connectUrl,
'expires_at' => $this->expiresAt->toW3cString(),
'token' => $this->token,
];
}
}