Skip to content

DataAPI SDK japanese MT.DataAPI Endpoint method createEntry

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

createEntry

Create a new entry.

POST https://your-host/your-mt-api.cgi/v1/sites/:site_id/entries

パラメータ

パラメータ名 タイプ 必須 説明
siteId Number | Object | Function * Site ID
entryData Object | HTMLFormElement * A entry data
callback Function no

Returns

XMLHttpRequest: A XMLHttpRequest object

api.createEntry(siteId, entryData, function(response) {
  if (response.error) {
    // Handle error
    return;
  }

  // Do stuff
});

Clone this wiki locally