Comments‎ > ‎

bluemelon.comments.get

lists comments for the specified item, user, or blog post

Authentication:

Yes (see here for details)

Arguments:

(optional) int: itemid - if set, the comment will be assigned to the specified item
(optional) int: userid - if set, the comment will be assigned to the user's guestbook
(optional) int: blogpostid - if set, the comment will be assigned to the specified blog post
(required) string : publickey - the public key of an application
(required) string : token - the access token

Request Example:

http://www.bluemelon.com/api/rest/{api_sing}/
?method=bluemelon.comments.get&itemid=103&publickey={publickey}&token={token}

Response Example:

<rsp status="ok" onrequest="bluemelon.comments.get">
<content>
<comment id="5" nickName="nick" date="April 20, 2009 at 05:28AM" unread="false"> <body>very nice shot!</body> </comment> <comment id="6" nickName="brian" date="April 20, 2009 at 05:28AM" unread="false"> <body>love this one. Good job.</body> </comment>
</content>
</rsp>

Error Codes:

4 - "Missing parameter"
5 - "Invalid parameter"
10 - "Folder not found"
11 - "Item not found"
12 - "Application not found"
14 - "Invalid accessToken"
16 - "Access token timed out.You must relogin."
17 - "Invalid call signature size"
18 - "Invalid call signature"
20 - "Missing api_sign"
24 - "Entered CAPTCHA code is not correct"
26 - "Comments disallowed by owner"
602 - "No read permissions"
603 - "Account recently expired or deleted"

Comments