業務時間 API

このAPIでは、業務時間の設定ができます。業務時間をあらかじめ設定しておけば、日中の特定の時間帯を選んでレポートを作成できます。APIでは、GETリクエストとPOSTリクエストをサポートしています。

リクエスト パラメーター

このAPIリクエストにかかわるパラメーターは、次の通りです。

フィールド 説明
mondaystarthour、tuesdaystarthour、wednesdaystarthour、thursdaystarthour、fridaystarthour、saturdaystarthour、sundaystarthour 業務開始時刻の時間を指定してください。
mondayendhour、tuesdayendhour, wednesdayendhour、thursdayendhour、fridayendhour、saturdayendhour、sundayendhour 業務終了時刻の時間を指定してください。
mondaystartminute、tuesdaystartminute、wednesdaystartminute、thursdaystartminute、fridaystartminute、saturdaystartminute、sundaystartminute 業務開始時刻の分を指定してください。
mondayendminute、tuesdayendminute、wednesdayendminute、thursdayendminute、fridayendminute、saturdayendminute、sundayendminute 業務終了時刻の分を指定してください。
workingdays(Monday、Tuesday、Wednesday、Thursday、Friday、Saturday、Sunday) 週の業務日を指定します。

Add業務時間

管理者はこのAPIで、Applications Managerのメール アクションを追加できます。

構文

XMLでレスポンスを受けるには

http://[APM Host]:[APM Port]/AppManager/xml/businesshours?apikey=[API_KEY]&mondayendhour=[MONDAY_END_HOUR]&wednesdayendminute=[WEDNESDAY_END_MINUTE]&thursdaystarthour=[THURSDAY_START_HOUR]&description=[DESCRIPTION]&name=[NAME]&tuesdaystartminute=[TUESDAY_START_MINUTE]&mondaystarthour=[MONDAY_START_HOUR]&fridaystartminute=[FRIDAY_START_MINUTE]&workingdays=[Monday,Tuesday,Wednesday,Thursday,Friday]&mondayendminute=[MONDAY_END_MINUTE]&fridayendminute=[FRIDAY_END_MINUTE]&tuesdaystarthour=[TUESDAY_END_HOUR]

JSONでレスポンスを受けるには

http://[APM Host]:[APM Port]/AppManager/json/businesshours?apikey=[API_KEY]&mondayendhour=[MONDAY_END_HOUR]&wednesdayendminute=[WEDNESDAY_END_MINUTE]&thursdaystarthour=[THURSDAY_START_HOUR]&description=[DESCRIPTION]&name=[NAME]&tuesdaystartminute=[TUESDAY_START_MINUTE]&mondaystarthour=[MONDAY_START_HOUR]&fridaystartminute=[FRIDAY_START_MINUTE]&workingdays=[Monday,Tuesday,Wednesday,Thursday,Friday]&mondayendminute=[MONDAY_END_MINUTE]&fridayendminute=[FRIDAY_END_MINUTE]&tuesdaystarthour=[TUESDAY_END_HOUR]

http://app-windows:59090/AppManager/xml/businesshours?apikey=09eebdd6893db4d20e16b84dff6664f1&mondayendhour=20&wednesdayendminute=0&saturdayendhour=00&thursdayendhour=20&saturdaystarthour=00&sundaystartminute=0&sundayendminute=0&mondaystartminute=0&thursdaystarthour=08&saturdayendminute=0&fridayendhour=20&description=sample description&name=Test Business Hour&tuesdaystartminute=0&mondaystarthour=08&fridaystartminute=0&sundayendhour=00&tuesdayendminute=0&fridaystarthour=08&thursdaystartminute=0&wednesdaystarthour=08&saturdaystartminute=0&sundaystarthour=00&wednesdayendhour=20&wednesdaystartminute=0&thursdayendminute=0&tuesdayendhour=20&workingdays=Monday,Tuesday,Wednesday,Thursday,Friday&mondayendminute=0&fridayendminute=0&tuesdaystarthour=08

業務時間の編集

管理者はこのAPIで、Applications Managerのメール アクションを編集できます。

構文

http://[APM Host]:[APM Port]/AppManager/xml/businesshours?apikey=[API_KEY]&mondayendhour=[MONDAY_END_HOUR]&wednesdayendminute=[WEDNESDAY_END_MINUTE]&thursdaystarthour=[THURSDAY_START_HOUR]&description=[DESCRIPTION]&newbusinessname=[NAME]&tuesdaystartminute=[TUESDAY_START_MINUTE]&mondaystarthour=[MONDAY_START_HOUR]&fridaystartminute=[FRIDAY_START_MINUTE]&workingdays=[Monday,Tuesday,Wednesday,Thursday,Friday]&businessid=[Business Id]&mondayendminute=[MONDAY_END_MINUTE]&fridayendminute=[FRIDAY_END_MINUTE]&tuesdaystarthour=[TUESDAY_END_HOUR]

JSONでレスポンスを受けるには

http://[APM Host]:[APM Port]/AppManager/json/businesshours?apikey=[API_KEY]&mondayendhour=[MONDAY_END_HOUR]&wednesdayendminute=[WEDNESDAY_END_MINUTE]&thursdaystarthour=[THURSDAY_START_HOUR]&description=[DESCRIPTION]&newbusinessname=[NAME]&tuesdaystartminute=[TUESDAY_START_MINUTE]&mondaystarthour=[MONDAY_START_HOUR]&fridaystartminute=[FRIDAY_START_MINUTE]&workingdays=[Monday,Tuesday,Wednesday,Thursday,Friday]&businessid=[Business Id]&mondayendminute=[MONDAY_END_MINUTE]&fridayendminute=[FRIDAY_END_MINUTE]&tuesdaystarthour=[TUESDAY_END_HOUR]

http://app-windows:59090/AppManager/xml/businesshours?apikey=09eebdd6893db4d20e16b84dff6664f1&mondayendhour=20&wednesdayendminute=0&saturdayendhour=00&thursdayendhour=20&saturdaystarthour=00&sundaystartminute=0&sundayendminute=0&mondaystartminute=0&thursdaystarthour=08&saturdayendminute=0&fridayendhour=18&newbusinessname=Test Business Hour&description=sample description new description&tuesdaystartminute=0&mondaystarthour=08&fridaystartminute=0&sundayendhour=00&tuesdayendminute=0&fridaystarthour=15&thursdaystartminute=0&wednesdaystarthour=08&saturdaystartminute=0&sundaystarthour=00&wednesdayendhour=20&businessid=10000&wednesdaystartminute=0&thursdayendminute=0&tuesdayendhour=20&workingdays=Friday&mondayendminute=0&fridayendminute=0&tuesdaystarthour=08

業務時間の削除

管理者はこのAPIで、Applications Managerのメール アクションを削除できます。

構文

XMLでレスポンスを受けるには

http://[APM Host]:[APM Port]/AppManager/xml/businesshours?apikey=[API_KEY]&businessid=[BUSINESS_ID],&TO_DELETE=true

JSONでレスポンスを受けるには

http://[APM Host]:[APM Port]/AppManager/json/businesshours?apikey=[API_KEY]&businessid=[BUSINESS_ID],&TO_DELETE=true

http://app-windows:59090/AppManager/xml/businesshours?apikey=09eebdd6893db4d20e16b84dff6664f1&businessid=10001,&TO_DELETE=true

業務時間のリストアップ

管理者はこのAPIで、Applications Managerに設定した業務時間をリストアップできます。

構文

XMLでレスポンスを受けるには

http://[APM Host]:[APM Port]/AppManager/xml/businesshours?apikey=[API_KEY]

JSONでレスポンスを受けるには

http://[APM Host]:[APM Port]/AppManager/json/businesshours?apikey=[API_KEY]

http://app-windows:59090/AppManager/xml/businesshours?apikey=09eebdd6893db4d20e16b84dff6664f1