Export It 1.3.1 Documentation
REST Server API: get_comments
Returns a comments for the given parameters
Resource URL
http://example.com/?ACT=<ACT>&key=<key>&method=get_comments&format=xml&channel_id=9
Parameters
A entry_id or channel_id must be provided
| entry_id | optional | The id of the entry you would like to return comments from |
| channel_id | optional | The id for the channel you would like to return comments from |
| date_range | optional | The amount of days you would like to restrain comments for |
| status | optional | The status for the comment you would like to return |
Example Request
http://example.com/?ACT=<ACT>&key=<key>&method=get_comments&entry_id=74&format=json
Example Response
<?xml version="1.0" encoding="UTF-8"?> <Comments> <comment> <comment_id>70</comment_id> <site_id>1</site_id> <entry_id>12</entry_id> <channel_id>9</channel_id> <author_id>1</author_id> <status><![CDATA[o]]></status> <name><![CDATA[Eric Lamb]]></name> <email><![CDATA[eric@mithra62.com]]></email> <url><![CDATA[http://blog.ericlamb.net]]></url> <location><![CDATA[Sherman Oaks, California]]></location> <ip_address><![CDATA[76.172.57.23]]></ip_address> <comment_date>1321833168</comment_date> <edit_date>0</edit_date> <comment><![CDATA[Oh man, that keeps getting missed when I update the docs. The Auto Prune Threshold is in bytes. ]]></comment> <title><![CDATA[Configuration]]></title> <channel_title><![CDATA[Documentation]]></channel_title> <channel_name><![CDATA[docs]]></channel_name> </comment> <comment> <comment_id>69</comment_id> <site_id>1</site_id> <entry_id>12</entry_id> <channel_id>9</channel_id> <author_id>0</author_id> <status><![CDATA[o]]></status> <name><![CDATA[John Morton]]></name> <email><![CDATA[tester@test.com]]></email> <url><![CDATA[http://test.com]]></url> <location><![CDATA[]]></location> <ip_address><![CDATA[207.237.96.42]]></ip_address> <comment_date>1321824637</comment_date> <edit_date>0</edit_date> <comment><![CDATA[Regarding the <em>Auto Prune Threshold</em> value, is that in bytes? megabytes? kilobytes?]]></comment> <title><![CDATA[Configuration]]></title> <channel_title><![CDATA[Documentation]]></channel_title> <channel_name><![CDATA[docs]]></channel_name> </comment> </Comments>

