-
-
Save mersy/3486116e0d5685c09328 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Data API オブジェクトの作成する。Data APIを利用する必須の事前準備。 | |
var api = new MT.DataAPI({ | |
baseUrl: "<mt:Var name="website_url">mt/mt-data-api.cgi", | |
clientId: "BfYMqpO2RzkZepaSh8G2" | |
}); | |
// Data API に渡すパラメータをセット | |
var params = { | |
status: "Publish", // 公開記事のみ | |
offset: 0, // 初期化しておく | |
limit: <$mt:Var name="limit_count"$>, // configモジュールで設定 | |
fields: "id,title,permalink,customFields,categories,date,assets" // 返ってくるieldを限定しておく | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment