Overview

public. Retrieve the comment text only

Uri Parameters
NameTypeDescription
commentnumberintidentifies the comment on the page
pageidstringeither an integer page ID, "home", or "=" followed by a double uri-encoded page title
Query Parameters
NameTypeDescription
authenticatebool?Force authentication for request (default: false)
Return Codes
NameValueDescription
BadRequest400Invalid input parameter or request body
Forbidden403Read access to the page is required
NotFound404The requested comment could not be found
Ok200The request completed successfully

Message Format

Content-type=text/plain

Implementation Notes

None

Code Samples

The following code example retrieves the contents of the first comment on the home page:

Plug p = Plug.New("http://deki-hayes/@api/deki");
p.At("users", "authenticate").WithCredentials("admin", "password").Get();
DreamMessage msg = p.At("pages", "home", "comments", "1", "content").Get();
String commentText = msg.AsText();
Tag page
You must login to post a comment.