SlackWebApiChannel
class SlackWebApiChannel
Constants
| protected SLACK_API_URL |
|
Methods
ResponseInterface|null
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.
at line 32
ResponseInterface|null
send(mixed $notifiable, Notification $notification)
Send the given notification.
at line 71
protected array
buildJsonPayload(SlackMessage $message, SlackRoute $route)
Build the JSON payload for the Slack chat.postMessage API.
at line 83
protected SlackRoute
determineRoute(mixed $notifiable, Notification $notification)
Determine the API Token and Channel that the notification should be posted to.