This API Widget allows developers to get comments on the video by setting value “get_comment” in the action parameter. The “mashup_id” is used to identify the video against which the comment is to be added. Use this property to provide comma separated values of mashup_ids to get comments from different mashups.

Additional parameters, provided in the table below, can be used to get specific results.


You will have to set User Context before calling this API. To establish Context, either use VIDIZMO JS Login API before calling this method or use VIDIZMO Web Login method and additionally pass "access_token" parameter to this call API.


Request



Parameters


Parameter 

Description

mashup_ids

Comma-separated mashup Ids, to get video comments against.

keyword

To search a keyword in comments. Pass Empty to perform to get all the results.

status

Status of comments

Preferred Values:

1 = Pending for Approval

2 = Approved

3 = Rejected

userprofile_id

ID of the user profile in order to get only user comment.


Response

 

{
  "result": {
    "comments": [
      {
        "id": 1885,
        "text": "test comment",
        "added_by_user": {
          "user_profile": {
            "id": 75231,
            "first_name": "Muhammad",
            "last_name": "Kashif",
            "email_address": "muhammad.kashif@vidizmo.com"
          },
          "tenant": null,
          "tenant_id": 33,
          "user_id": 0
        },
        "added_date_time": "2015-04-23T11:53:58.79",
        "reply_comment_id": null,
        "comments": null,
        "is_approved": false,
        "mashup": null
      }
    ],
    "count": 1
  },
  "status": 1,
  "status_code": 200,
  "message": null
}



To learn more how these Widgets work, click here on VIDIZMO Web API Library.

For a complete list of VIDIZMO APIs, click here on VIDIZMO Developer APIs.