Web Method: getAllNews

What is the getAllNews Method?

This method retrieves a list of all available news stories in your Apptivo firm. Use this method to return a list of all news stories without any filters, to display within your application.

Method Definition

@WebMethod(action = "getAllNews", operationName = "getAllNews")
public NewsListHelper getAllNews(String siteKey, String accessKey)

Expected Response

stdClass Object
(
[return] => stdClass Object
(
[newsList] => Array
(
[0] => stdClass Object
(
[newsId] => 10213
[newsHeadLine] => News Title - Update
[description] =>
News Description – Update
[startDate] => 2012-05-01T23:24:09-07:00
[link] => https://www.news.com
[publishedAt] => 01-Apr-2011
[publishedBy] => Jeyakumar
[sequenceNumber] => 5
[endDate] => 2032-05-01T17:00:00-07:00
[creationDate] => 2012-05-01T23:24:04.385-07:00
[newsImages] => https://testwp.dev.net/wp-content/uploads/2012/04/orange-150x116.png
[cmsFirmSiteId] => 10502
)
[1] => stdClass Object
(
[newsId] => 10195
[newsHeadLine] => Test News 3
[description] =>
ss
[startDate] => 2012-04-27T23:16:49-07:00
[link] =>
[publishedAt] =>
[publishedBy] =>
[sequenceNumber] => 0
[endDate] => 2012-04-30T17:00:00-07:00
[creationDate] => 2012-04-27T23:16:49.629-07:00
[newsImages] =>
[cmsFirmSiteId] => 10502
)
[statusCode] => 1000
[statusMessage] => Success
)
)

Back to API reference.