Browse Source

Updated the example code

main
Cédric Belin 2 months ago
parent
commit
fecc63dbd2
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      example/main.php

+ 3
- 3
example/main.php View File

@@ -10,12 +10,12 @@ function sendNotification(): void {
]);

$client->sendMessage("Hello World!");
echo "The message was sent successfully";
print "The message was sent successfully";
}

catch (Throwable $e) {
echo "An error occurred: ", $e->getMessage(), PHP_EOL;
if ($e instanceof ClientException) echo "From: ", $e->getUri(), PHP_EOL;
print "An error occurred: {$e->getMessage()}" . PHP_EOL;
if ($e instanceof ClientException) print "From: {$e->getUri()}" . PHP_EOL;
}
}



Loading…
Cancel
Save