Skip to content
Display

Display

Star12.2k

Developers

Messengers API (Notifications)

  • Cloud and self-hosted
Markdown

Posts project notifications to the messenger webhooks a project has configured (Slack, Mattermost, Zulip, Discord, Telegram).

leantime.rpc.Notifications.Messengers.

leantime.rpc.Notifications.Messengers.__construct

Section titled “leantime.rpc.Notifications.Messengers.__construct”

__construct - get database connection

{
"method": "leantime.rpc.Notifications.Messengers.__construct",
"jsonrpc": "2.0",
"id": 1,
"params": {
"httpClient": \Leantime\Core\Support\OutboundHttpClient,
"settingsRepo": \Leantime\Domain\Setting\Repositories\Setting,
"language": \Leantime\Core\Language,
}
}

Parameters:

Parameter Type Description
httpClient \Leantime\Core\Support\OutboundHttpClient
settingsRepo \Leantime\Domain\Setting\Repositories\Setting
language \Leantime\Core\Language

Returns:

{
"jsonrpc": "2.0",
"id": 1,
"result": mixed
}

leantime.rpc.Notifications.Messengers.slackWebhook

Section titled “leantime.rpc.Notifications.Messengers.slackWebhook”

slackWebhook

{
"method": "leantime.rpc.Notifications.Messengers.slackWebhook",
"jsonrpc": "2.0",
"id": 1,
"params": {
"notification": \Leantime\Domain\Notifications\Models\Notification,
}
}

Parameters:

Parameter Type Description
notification \Leantime\Domain\Notifications\Models\Notification

Returns:

{
"jsonrpc": "2.0",
"id": 1,
"result": bool
}

leantime.rpc.Notifications.Messengers.mattermostWebhook

Section titled “leantime.rpc.Notifications.Messengers.mattermostWebhook”

mattermostWebhook

{
"method": "leantime.rpc.Notifications.Messengers.mattermostWebhook",
"jsonrpc": "2.0",
"id": 1,
"params": {
"notification": \Leantime\Domain\Notifications\Models\Notification,
}
}

Parameters:

Parameter Type Description
notification \Leantime\Domain\Notifications\Models\Notification

Returns:

{
"jsonrpc": "2.0",
"id": 1,
"result": bool
}

leantime.rpc.Notifications.Messengers.zulipWebhook

Section titled “leantime.rpc.Notifications.Messengers.zulipWebhook”

zulipWebhook

{
"method": "leantime.rpc.Notifications.Messengers.zulipWebhook",
"jsonrpc": "2.0",
"id": 1,
"params": {
"notification": \Leantime\Domain\Notifications\Models\Notification,
}
}

Parameters:

Parameter Type Description
notification \Leantime\Domain\Notifications\Models\Notification

Returns:

{
"jsonrpc": "2.0",
"id": 1,
"result": bool
}

leantime.rpc.Notifications.Messengers.discordWebhook

Section titled “leantime.rpc.Notifications.Messengers.discordWebhook”

mattermostWebhook

{
"method": "leantime.rpc.Notifications.Messengers.discordWebhook",
"jsonrpc": "2.0",
"id": 1,
"params": {
"notification": \Leantime\Domain\Notifications\Models\Notification,
}
}

Parameters:

Parameter Type Description
notification \Leantime\Domain\Notifications\Models\Notification

Returns:

{
"jsonrpc": "2.0",
"id": 1,
"result": bool
}

leantime.rpc.Notifications.Messengers.prepareMessage

Section titled “leantime.rpc.Notifications.Messengers.prepareMessage”
{
"method": "leantime.rpc.Notifications.Messengers.prepareMessage",
"jsonrpc": "2.0",
"id": 1,
"params": {
"notification": \Leantime\Domain\Notifications\Models\Notification,
}
}

Parameters:

Parameter Type Description
notification \Leantime\Domain\Notifications\Models\Notification

Returns:

{
"jsonrpc": "2.0",
"id": 1,
"result": array[]
}

Was this page helpful?