「22-2 XML-RPC」では、mt.supportedMethodsの取得情報を元にAPIを掲載していますが、以下のAPIも用意されています。API名の「mt.」は想定ですが問題なく動作します。
mt.runPeriodicTasks
スケジュールタスクを実行します。
[パラメータ]
型 | 名称 | 意味 |
---|---|---|
string | username | ユーザー名 |
string | password | Webサービスのパスワード |
[返却値]
型 | キー | 意味 |
---|---|---|
string | responseCode | レスポンスコード(「success」固定) |
mt.publishScheduledFuturePosts
指定ブログに対し、日時指定の記事を公開します(動作未確認)。
[パラメータ]
型 | 名称 | 意味 |
---|---|---|
string | blogid | ブログID |
string | username | ユーザー名 |
string | password | Webサービスのパスワード |
[返却値]
型 | キー | 意味 |
---|---|---|
string | responseCode | レスポンスコード(「success」固定) |
int | publishedCount | 公開記事数 |
mt.getNextScheduled
次回のスケジュールを取得します。
[パラメータ]
型 | 名称 | 意味 |
---|---|---|
string | username | ユーザー名 |
string | password | Webサービスのパスワード |
[返却値]
型 | キー | 意味 |
---|---|---|
dateTime | nextScheduledTime | 次回のスケジュール |
mt.setRemoteAuthToken
指定ユーザーのremote_auth_usernameとremote_auth_tokenを設定します。
[パラメータ]
型 | 名称 | 意味 |
---|---|---|
string | username | ユーザー名 |
string | password | Webサービスのパスワード |
string | remote_auth_username | remote_auth_username |
string | remote_auth_token | remote_auth_token |
[返却値]
なし