GET comments/getAll
Returns a list of comments
URL:
http://mobileroadie.com/api/comments/getAll
Formats
XML, JSON, HTML
HTTP Method(s):
GET
Parameters:
-
api_key
-
Required
-
-
offset
-
For pagination. Default is set to 0.
-
-
limit
-
Limit the number of results returned. Default is 50.
-
-
type
-
Defaults to all. Available types provided by comments/getTypes
-
-
parent_id
-
Defaults to 0. Use a comment id here to get available replies.
-
-
item_id
-
Defaults to nil. Use the id of the content to get comments for that item.
-
-
direction
-
Defaults to 'ASC'. Use 'DESC' for descending values by date, 'ASC' for ascending values by date.
-
Usage Example
Code Example
<?php $handle = curl_init("https://mobileroadie.com/api/comments/getAll/key/4d4ba30d73b77f7/type/fanwall/limit/10/direction/DESC/parent_id/0/format/xml"); curl_setopt($handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY); $response = curl_exec($handle); curl_close($handle); ?>
Example XML Response
<xml> <item> <id>2455</id> <body>Alexa here, just saw you guys play near my hometown. Loved the performance and going to the next one. Rock on!</body> <created>2009-06-09 17:16:24</created> <parent_id>0</parent_id> <item_id></item_id> <imgpath></imgpath> <lat>0.000000</lat> <lon>0.000000</lon> <profileimage>http://gs3.mblrd.com/i/50-50/c/aHR0cDovL21vYmlsZXJvYWRpZS5jb20vaW1nL2RlZmF1bHQtaW1hZ2UucG5n</profileimage> <nickname>Alexa</nickname> <type>fanwall</type> <repliescount>0</repliescount> </item> </xml>
Comments
0 comments
Please sign in to leave a comment.