Web service API

How to use PageSeeder's Web service API

list member group discussions

/members/{member}/groups/{group}/discussions [GET]

com.pageseeder.comment.GetDiscussionsForGroup

Description

Load a list of discussions from the current group.

Parameters

Name Description Required Type Default value
comments the comments to include, can be "none","first","last","all","archive" no string all
discussionsize the maximum number of comments to return per discussion no integer 100
page the page to load no integer 1
pagesize the number of results per page no integer 10
returngroups the groups to return in the output, can be "none","user","all"(administrator only will include all comments) no string none

Permission

This service is restricted to guest and above.

Response

This service returns a <discussions> element, listing each discussion in a <discussion> element.

 <discussions>
   <discussion id="123" title="My thread" replycount="3"
               lastcommentid="234" lastcommentdate="2012-08-20T14:27:48+10:00">
     <uri id="789">...</uri>
     <locator fragment="2"/>
     <comment id="234" contentrole="File Attachment" created="2012-03-08T12:34:00+10:00">
       <title>My thread</title>
       <content type="text/plain">
         Some text
       </content>
       <attachment>
         <uri id="189">...</uri>
       </attachment>
       <attachment fragment="5">
         <uri id="289">...</uri>
       </attachment>
     </comment>
   </discussion>
   <discussion id="100">
     ...
   </discussion>
 </discussions>

Error Handling

No specific errors expected for this generator.

Created on , last edited on