What is the getNewsByNewsId Method?

This method will retrieve the details of a new story from Apptivo. By providing a news story ID, the method will return all news details, such as a title, description, date, image, etc. The method is used to display company news stories in your application.

Method Definition

@WebMethod(action = "getNewsByNewsId", operationName = "getNewsByNewsId")
public NewsHelper getNewsByNewsId(String siteKey, String accessKey, String newsId)

Expected Response

stdClass Object
[return] => stdClass Object
[newsId] => 10213
[newsHeadLine] => News Title
[description] =>
News Description
[startDate] => 2012-05-01T23:24:09-07:00
[link] => https://www.news.com
[publishedAt] => 01-Apr-2011
[publishedBy] => Jeyakumar
[sequenceNumber] => 3
[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
[statusCode] => 1000
[statusMessage] => Success

Back to API reference.