MediaPost Social Network

Up.comments.get

Returns comments you want to see.

Parameters

Type Name Required Description
string api_key The application key associated with the calling application.
string community Community system name. Use up.community.getList method to retrieve available communities.
string session_key The session key of the logged in user.
string apiSig An MD5 hash of the current request and your secret key, as described in the authentication guide.
string format Desired response format. Either XML (default) or JSON.
string ids Comma-separated list of comment IDs.

Example return XML

<?xml version="1.0"?>

<comments_get_response list="true">

  <comment>
    <id>1</id>

    <user_id>1</user_id>
    <item_id>5</item_id>

    <item_type>photo</item_type>
    <created_at>1186577563</created_at>

    <title/>
    <message/>

    <parent_id/>
    <accepted>3</accepted>

  </comment>
  <comment>
    <id>11</id>

    <user_id>1</user_id>
    <item_id>6</item_id>

    <item_type>user</item_type>
    <created_at>1186577625</created_at>

    <title/>
    <message/>

    <parent_id/>
    <accepted>3</accepted>

  </comment>
  <comment>
    <id>42</id>

    <user_id>5</user_id>

    <item_id>6</item_id>
    <item_type>group</item_type>
    <created_at>1186653652</created_at>

    <title/>

    <message>drg</message>
    <parent_id/>
    <accepted>3</accepted>

  </comment>

  <comment>
    <id>322</id>
    <user_id>3</user_id>
    <item_id>7</item_id>

    <item_type>app</item_type>
    <created_at>1193392654</created_at>
    <title/>
    <message>appcomment1</message>

    <parent_id/>
    <accepted>3</accepted>
  </comment>
  <comment>
    <id>391</id>

    <user_id>8</user_id>
    <item_id>12900</item_id>
    <item_type>top rated video</item_type>
    <created_at>1200936204</created_at>

    <title/>
    <message>iopeer</message>
    <parent_id/>
    <accepted>3</accepted>

  </comment>
</comments_get_response>

Error codes

Code Description
1 An unknown error occurred. Please resubmit the request.
2 The service is not available at this time.
4 The application has reached the maximum number of requests allowed. More requests are allowed once the time window has completed.
5 The request came from a remote address not allowed by this application.
100 One of the parameters specified was missing or invalid.
101 The api key submitted is not associated with any known application.
102 The session key was improperly submitted or has reached its timeout. Direct the user to log in again to obtain another key.
104 Incorrect signature.