public. Retrieve the comments on a page
Output:
<comments count="{int}" href="{uri}"> <comment id="{int}" href="{uri}"> <page.parent id="{uri}" href="{uri}"> <title>{text}</title> <path>{text}</path> </page.parent> <user.createdby id="{int}" href="{uri}"> <nick>{text}</nick> <username>{text}</username> <email>{text}</email> </user.createdby> <date.posted>{date}</date.posted> <title>{text}</title> <number>{int}</number> <content type="{mimetype}" href="{uri}">{text}</content> <user.editedby id="{int}" href="{uri}"> <nick>{text}</nick> <username>{text}</username> <email>{text}</email> </user.editedby> <date.edited>{date}</date.edited> <user.deletedby id="{int}" href="{uri}"> <nick>{text}</nick> <username>{text}</username> <email>{text}</email> </user.deletedby> <date.deleted>{date}</date.deleted> </comment> ... </comments>
The user.deletedby and date.deleted elements only exist if the comment has been deleted.
Use POST:pages/{pageid}/comments to add new comments to the page.
Viewing Details:
Table of contents
Overview
public. Retrieve the comments on a page
Uri Parameters
Query Parameters
Return Codes
Message Format
Output:
<comments count="{int}" href="{uri}"> <comment id="{int}" href="{uri}"> <page.parent id="{uri}" href="{uri}"> <title>{text}</title> <path>{text}</path> </page.parent> <user.createdby id="{int}" href="{uri}"> <nick>{text}</nick> <username>{text}</username> <email>{text}</email> </user.createdby> <date.posted>{date}</date.posted> <title>{text}</title> <number>{int}</number> <content type="{mimetype}" href="{uri}">{text}</content> <user.editedby id="{int}" href="{uri}"> <nick>{text}</nick> <username>{text}</username> <email>{text}</email> </user.editedby> <date.edited>{date}</date.edited> <user.deletedby id="{int}" href="{uri}"> <nick>{text}</nick> <username>{text}</username> <email>{text}</email> </user.deletedby> <date.deleted>{date}</date.deleted> </comment> ... </comments>Implementation Notes
The user.deletedby and date.deleted elements only exist if the comment has been deleted.
Use POST:pages/{pageid}/comments to add new comments to the page.
Code Samples
C# Samples
Curl Samples
PHP Samples
Other Code Samples
Retrieved from "http://developer.mindtouch.com/index.php?title=en/ref/MindTouch_API/GET:pages%2F%2F%7Bpageid%7D%2F%2Fcomments"