We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
lastUsed
1 parent 5e7e6ee commit 38c834dCopy full SHA for 38c834d
2 files changed
examples/Client/get.php
@@ -25,6 +25,7 @@
25
echo 'Id: ' . $details->id . PHP_EOL;
26
echo 'Name: ' . $details->name . PHP_EOL;
27
echo 'Token: ' . $details->token . PHP_EOL;
28
+ echo 'Last used: ' . $details->lastUsed . PHP_EOL;
29
echo PHP_EOL;
30
}
31
} catch (EndpointException | GotifyException $err) {
tests/Endpoints/ClientTest.php
@@ -59,6 +59,7 @@ public function testGetAll(): void
59
$this->assertObjectHasProperty('id', $client);
60
$this->assertObjectHasProperty('name', $client);
61
$this->assertObjectHasProperty('token', $client);
62
+ $this->assertObjectHasProperty('lastUsed', $client);
63
64
65
0 commit comments