This MBAPI command gets news group information from the database and returns it. Although in most cases news groups won't need to be searched for, searching capability is available. You can get the news group of a news article by passing the newsID element, or you can search for a news group by name, description, or whether or not the group is active. Something similar to the following XML should be passed to dispatchMBAPI() when you want to call the GetNews command:
<mbapi> <command><!-- None --></command> <showXMLHeader><!-- None --></showXMLHeader> <params> <newsID><!-- None --></newsID> <newsGroupID><!-- None --></newsGroupID> <newsGroupName><!-- None --></newsGroupName> <newsGroupDescription><!-- None --></newsGroupDescription> <newsGroupActive><!-- None --></newsGroupActive> <newsGroupOrder><!-- None --></newsGroupOrder> <newsGroupName><!-- None --></newsGroupName> <newsGroupDescription><!-- None --></newsGroupDescription> <newsGroupActive><!-- None --></newsGroupActive> <sortDir><!-- None --></sortDir> <sortColumn><!-- None --></sortColumn> <recordOffset><!-- None --></recordOffset> <numRecords><!-- None --></numRecords> </params> </mbapi>
None
mbapi
command
showXMLHeader
params
newsID
newsGroupID
newsGroupName
newsGroupDescription
newsGroupActive
newsGroupOrder
newsGroupName
newsGroupDescription
newsGroupActive
sortDir
sortColumn
recordOffset
numRecords