Skip to content

DataAPI SDK japanese MT.DataAPI Endpoint method createReplyComment

Taku AMANO edited this page Aug 28, 2013 · 8 revisions

createReplyComment

返信コメントを新規作成します

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

パラメータ

パラメータ名 タイプ 必須 説明
siteId Number | Object | Function * ブログID
entryId Number | Object | Function * ブログ記事ID
commentId Number | Object | Function * 返信先コメントID
commentData Object | HTMLFormElement * 作成するコメントデータ
callback Function

戻り値

XMLHttpRequest: XMLHttpRequestオブジェクト

api.createReplyComment(siteId, entryId, commentId, commentData, function(response) {
  if (response.error) {
    // エラー処理
    return;
  }

  // レスポンスデータを使った処理
});
Clone this wiki locally