class SlackWebApiChannel

Constants

protected SLACK_API_URL

Methods

__construct(Client $client, Repository $config)

Create a new Slack channel instance.

ResponseInterface|null
send(mixed $notifiable, Notification $notification)

Send the given notification.

array
buildJsonPayload(SlackMessage $message, SlackRoute $route)

Build the JSON payload for the Slack chat.postMessage API.

determineRoute(mixed $notifiable, Notification $notification)

Determine the API Token and Channel that the notification should be posted to.

Details

at line 23
__construct(Client $client, Repository $config)

Create a new Slack channel instance.

Parameters

Client $client
Repository $config

at line 32
ResponseInterface|null send(mixed $notifiable, Notification $notification)

Send the given notification.

Parameters

mixed $notifiable
Notification $notification

Return Value

ResponseInterface|null

at line 71
protected array buildJsonPayload(SlackMessage $message, SlackRoute $route)

Build the JSON payload for the Slack chat.postMessage API.

Parameters

SlackMessage $message
SlackRoute $route

Return Value

array

at line 83
protected SlackRoute determineRoute(mixed $notifiable, Notification $notification)

Determine the API Token and Channel that the notification should be posted to.

Parameters

mixed $notifiable
Notification $notification

Return Value

SlackRoute