PostMessage Class

Description

The PostMessage class is used for submiting new messages into the system. Simply build up a string in the style of either XML or JSON and POST it to the correct end point.

Property Type Description
Forum string The name of the forum to post into.
Topic string The name of the topic to post into.
Body string The body of the message.
MsgID int The message ID of the message this is a replt to or 0 for a new post.

Example XML

<PostMessage xmlns="http://cixonline.com" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
   <Body>Test message</Body>
   <Forum>charlietest</Forum>
   <MsgID>0</MsgID>
   <Topic>newtest</Topic>
</PostMessage>

Example JSON

{
  "Forum":"charlietest",
  "Topic":"newtest",
  "Body":"Test message",
  "MsgID":0
}
 
cix.api/class.postmessage.txt · Last modified: 2008/10/14 16:48 by charlie
 
Except where otherwise noted, content on this wiki is licensed under the following license:Public Domain
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Debian Driven by DokuWiki