Skip to content
Display

Display

Star12.2k

Developers

News API (Notifications)

  • Cloud and self-hosted
Markdown

leantime.rpc.Notifications.News.

leantime.rpc.Notifications.News.__construct

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

__construct - get database connection

{
"method": "leantime.rpc.Notifications.News.__construct",
"jsonrpc": "2.0",
"id": 1,
"params": {
"settingService": \Leantime\Domain\Setting\Services\Setting,
}
}

Parameters:

Parameter Type Description
settingService \Leantime\Domain\Setting\Services\Setting

Returns:

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

getFeed - Fetches the feed from a remote URL and returns the contents as a SimpleXMLElement object

{
"method": "leantime.rpc.Notifications.News.getFeed",
"jsonrpc": "2.0",
"id": 1,
"params": {
}
}

Returns:

  • The parsed XML content as a SimpleXMLElement object
{
"jsonrpc": "2.0",
"id": 1,
"result": \SimpleXMLElement
}

Was this page helpful?