User.RecentPosts.get

Description

Returns a list of a users most recent posts in open forums (max 20 results). A user can opt to disable this report.

Requires OAuth authentification.

Method

GET

Endpoint

http://api.cixonline.com/v1.0/cix.svc/user/{user}/recentposts(.xml/.json)

Parameters

Required Name Type Description
required user string User to return results for.

Example Request

Example Return XML

<MessageResultSet xmlns="http://cixonline.com" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> 
  <Count>20</Count> 
  <Messages> 
    <Message> 
      <Author>charlie</Author> 
      <Body>Thanks added as...</Body> 
      <DateTime>14/10/2008 17:08:05</DateTime> 
      <Depth>0</Depth> 
      <Forum>cix.customer</Forum> 
      <ID>3099</ID> 
      <Priority>false</Priority> 
      <ReplyTo>0</ReplyTo> 
      <RootID>3096</RootID> 
      <Starred>false</Starred> 
      <Status /> 
      <Topic>8feedback</Topic> 
    </Message> 
    <Message> 
      <Author>charlie</Author> 
      <Body>I aggree that's how it...</Body> 
      <DateTime>14/10/2008 17:05:12</DateTime> 
      <Depth>0</Depth> 
      <Forum>cix.customer</Forum> 
      <ID>3098</ID> 
      <Priority>false</Priority> 
      <ReplyTo>0</ReplyTo> 
      <RootID>3088</RootID> 
      <Starred>false</Starred> 
      <Status /> 
      <Topic>8feedback</Topic> 
    </Message> 
  </Messages> 
  <Start>0</Start> 
</MessageResultSet>

Example Return JSON

{
  "Count":20,
  "Messages":[
    {"Author":"charlie","Body":"Thanks added as...","DateTime":"14\/10\/2008 17:08:05","Depth":0,
      "Forum":"cix.customer","ID":3099,"Priority":false,"ReplyTo":0,"RootID":3096,
      "Starred":false,"Status":"","Topic":"8feedback"},
    {"Author":"charlie","Body":"I aggree that's how it...","DateTime":"14\/10\/2008 17:05:12","Depth":0,
      "Forum":"cix.customer","ID":3098,"Priority":false,"ReplyTo":0,"RootID":3088,
      "Starred":false,"Status":"","Topic":"8feedback"}
  ],
  "Start":0
}

Error Codes

Code Description
400 Bad request. Check input parameters.
401 Authentication failed. Missing required parameter : {parameter name}.
401 Signature expired. Either the timestamp or the nonce have expired or are invalid.
 
cix.api/user.recentposts.get.txt · Last modified: 2008/10/17 11:36 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