Developers
News API (Notifications)
- Cloud and self-hosted
leantime.rpc.Notifications.News.
Available Methods
Section titled “Available Methods”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}leantime.rpc.Notifications.News.getFeed
Section titled “leantime.rpc.Notifications.News.getFeed”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?
Thanks, glad it helped.
Thanks for telling us. What was missing?
