Notification Operations
The SDK supprots mutating notifications that are available in your Lagoon instance.
Mutations
add()
Add a notification to Lagoon.
Parameters <array>
$notification = [
'name' => 'notification-name',
'channel' => 'channel',
'webhook' => 'http://webhook.url',
];
Example
$client = new LagoonClient($endpoint, $token);
$client->notification()->add($notification)->execute();
addToProject()
Update a project in Lagoon and attach a notification.
Parameters <array>
$notification = [
'notificationType' => 'SLACK',
'project' => 'my-project',
'notificationName' => 'notificatoin-name',
];
Example
$client = new LagoonClient($endpoint, $token);
$client->notification()->addToProject($notification)->execute();