Skip to content

DataAPI SDK japanese MT.DataAPI Endpoint method createReplyComment

Taku AMANO edited this page Jul 6, 2013 · 8 revisions

createReplyComment

Create a new reply comment.

POST https://your-host/your-mt-api.cgi/v1/sites/:site_id/entries/:entry_id/comments/:comment_id/replies

パラメータ

パラメータ名 タイプ 必須 説明
siteId Number | Object | Function * Site ID
entryId Number | Object | Function * Entry ID
commentId Number | Object | Function * Comment ID
commentData Object | HTMLFormElement * A comment data
callback Function no

戻り値

XMLHttpRequest: XMLHttpRequestオブジェクト

api.createReplyComment(siteId, entryId, commentId, commentData, function(response) {
  if (response.error) {
    // Handle error
    return;
  }

  // Do stuff
});
Clone this wiki locally