DataAPI SDK japanese MT.DataAPI Endpoint method getEntry - movabletype/mt-data-api-sdk-js GitHub Wiki
ブログ記事のデータを取得します
GET https://your-host/your-mt-api.cgi/v1/sites/:site_id/entries/:entry_id 詳細
| パラメータ名 | タイプ | 必須 | 説明 |
|---|---|---|---|
| siteId | Number | Object | Function | * | ブログID |
| entryId | Number | Object | Function | * | ブログ記事ID |
| params | Object | オプション | |
| callback | Function |
XMLHttpRequest: XMLHttpRequestオブジェクト
api.getEntry(siteId, entryId, function(response) {
if (response.error) {
// エラー処理
return;
}
// レスポンスデータを使った処理
});Or
api.getEntry(siteId, entryId, {fields: "title,permalink,date"}, function(response) {
if (response.error) {
// エラー処理
return;
}
// レスポンスデータを使った処理
});