SearchRequest Class

Description

The SearchRequest class is used for submiting searchs to 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
Query string The text to search for.
Years string The number of years to search back (default 1).
Forum string Set this property to restrict the search to a forum.
Author string Set this to only return messages posted by this author.

Example XML

<SearchRequest xmlns="http://cixonline.com" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
   <Author/>
   <Forum>pc_pro</Forum>
   <Query>ibook</Query>
   <Years/>
</SearchRequest>

Example JSON

{
   "Forum":"pc_pro",
   "Author":"",
   "Years":"",
   "Query":"ibook"
}
 
cix.api/class.searchrequest.txt · Last modified: 2008/10/15 17:17 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