GetNews

Description

This MBAPI command accesses data pertaining to news articles. By specifying one of the IDs listed below in your input XML, you will greatly limit your results. To get all news, specify no parameters. You can search news articles by date just by providing one of the timestamp fields below. When searching on newsSubject, newsShortBody, and newsBody, those parameters will match any news article that contains the provided strings in those parameters; so searching for a newsSubject of "Computer" would match the news article with the subject "How to Fix Your Computer", and also a news article with the subject "Why Clean Your Computer?". This command returns data about a news article, but also returns data about the article's news group, and data about the administrator who created the article. All of the parameters that this MBAPI command takes into account when filtering results are as follows:

Attributes

package
modernbill
subpackage
mbapi
version
0.1
author
Vic Fryzel
author
Andy Christ

Example Request

	<mbapi>
		<command><!-- None --></command>
		<showXMLHeader><!-- None --></showXMLHeader>
		<params>
			<newsID><!-- None --></newsID>
			<newsGroupID><!-- None --></newsGroupID>
			<clientGroupID><!-- None --></clientGroupID>
			<adminID><!-- None --></adminID>
			<companyID><!-- None --></companyID>
			<newsSubject><!-- None --></newsSubject>
			<newsShortBody><!-- None --></newsShortBody>
			<newsBody><!-- None --></newsBody>
			<newsDateCreatedLessThan><!-- None --></newsDateCreatedLessThan>
			<newsDateCreated><!-- None --></newsDateCreated>
			<newsDateCreatedGreaterThan><!-- None --></newsDateCreatedGreaterThan>
			<newsActive><!-- None --></newsActive>
			<newsPriority><!-- None --></newsPriority>
			<sortDir><!-- None --></sortDir>
			<sortColumn><!-- None --></sortColumn>
			<recordOffset><!-- None --></recordOffset>
			<numRecords><!-- None --></numRecords>
		</params>
	</mbapi>

		

Example Response

None
		

Request Elements

mbapi
Type
None
Description
None
Children
command
Type
None
Description
None
showXMLHeader
Type
None
Description
None
params
Type
None
Description
None
Children
newsID
Type
None
Description
None
newsGroupID
Type
None
Description
None
clientGroupID
Type
None
Description
None
adminID
Type
None
Description
None
companyID
Type
None
Description
None
newsSubject
Type
None
Description
None
newsShortBody
Type
None
Description
None
newsBody
Type
None
Description
None
newsDateCreatedLessThan
Type
None
Description
None
newsDateCreated
Type
None
Description
None
newsDateCreatedGreaterThan
Type
None
Description
None
newsActive
Type
None
Description
None
newsPriority
Type
None
Description
None
sortDir
Type
None
Description
None
sortColumn
Type
None
Description
None
recordOffset
Type
None
Description
None
numRecords
Type
None
Description
None

Response Elements

None