News Item Structure


Note you can post all of these fields to the server using the AddNewsItemsEx method by posting an XML string containing all these field values (minus the PK).

PK I
Primary Key that identifies each message. In the future editing will be available by PK for the provider of the news.

PROVIDERPK I
The primary key of the news provider.

SUBJECT C (100)
Subject/Topic of the news or other item method.

CONTENT M
Detailed content of the item. We recommend this does not exceed 500 characters to keep news lists generated readable.

SUBMITTED T
Time and date item was submitted. If not provided or sent as an empty date this value will default to the submission time on the server

APPROVED N (1,0)
Determines whether the item is visible. Not implemented right now. Values: 1 (true), 0 (false)

PRIVATE N(1,0)
Determines whether an item is returned for the public list or just displayed on the provider specific item list. It's a filter that's fired on the total list of news items, but not on queries that return requests for a specific provider. Values: 1 (true), 0 (false)

LINK M
HTML link that can be clicked for more info on the item.

XMLLINK M
XML Link that can be used to retrieve more information in XML format. Format and implementation depends on provider. No defaults for this and the current service doesn't send anything in this field. But providers are free to post items with XML links and access those links using the SaveItemEx method.

TYPE C (15)
The type of item we're dealing with. Default is NEWS.
NEWS
USERGROUP
ARTICLE
DOWNLOAD

IMAGELINK M
Link to a small thumbnail image that can be used with the item. Image should be no bigger than 32x32 to keep it compact.

MODE I
Optional mode flag for the item. Provider specific. I use it to denote, New/Updated status flags.

XML M
Free form XML field that can be used to store custom information. Can be used and assigned by the provider using the AddNewsItemEx method.


XML structure posted with SaveItemEx:

<?xml version="1.0"?>
<foxcentral>
	<newsitem>
		<approved>0</approved>
		<content>west Wind Technologies has announced that West Wind Web Connection 3.65 has been released this week.</content>
		<imagelink>http://www.west-wind.com/WebConnection/images/wconnecttiny.gif</imagelink>
		<link></link>
		<mode>0</mode>
		<pk>1</pk>
		<providerpk>1</providerpk>
		<subject>West Wind Web Connection 3.65 released</subject>
		<submitted>2001-08-21T00:00:00</submitted>
		<type>NEWS</type>
		<xml></xml>
		<xmllink></xmllink>
		<password>providerpasswordhere</password>
	</newsitem>
</foxcentral>



  Last Updated: 6/3/2007 | © West Wind Technologies, 2007