comment
/members/{member}/comments/{commentid} [GET]
| API Support | Available since | Last updated | Output |
|---|---|---|---|
| 5.6900 | 5.9500 | xml, json |
Description
Load a single comment from accessible groups.
Parameters
| Name | Description | Required | Type | Default value |
|---|---|---|---|---|
| emails | The email addresses to include, can be none or all (only users who can edit the comment). | no | string | none |
| returngroups | The groups to return in the output, can be none, user or all (admin only). | no | string | none |
Permission
If the group of the comment is public, the member on the request don’t need to be a member of the group. Otherwise, the member on the request needs to be a guest or higher.
If the emails parameter is set to all, then the service is restricted to users who can edit the comment.
If the returngroups parameter is set to all, then the service is restricted to administrator only.
Response
The output has the following format:
<comment id="123"
discussionid="456"
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>
<context fragment="2">
<uri|group id="789"> ... </uri|group>
</context>
[<group .../>...]
</comment>
Error Handling
| Code | Cause / Description |
|---|---|
| 0x1317 | the comment was not found |