public. Retrieve the comment text only
None
Content-type=text/plain
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();
Viewing Details:
Table of contents
Overview
public. Retrieve the comment text only
Uri Parameters
Query Parameters
None
Return Codes
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();Retrieved from "http://wiki.developer.mindtouch.com/index.php?title=MindTouch_Deki/API_Reference/GET:pages%2F%2F%7Bpageid%7D%2F%2Fcomments%2F%2F%7Bcommentnumber%7D%2F%2Fcontent"