工作时间 API


这些API允许管理员用户在Applications Manager中配置工作时间。工作时间是一组计划时间,可帮助您查看一天中特定时间的报表。工作时间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) 一周的工作日。

添加工作时间

该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]&describe=[describe]&name=[Name]&tuesdaystartminute=[Tuesday Start Minute]&mondaystarthour=[ Monday Start Hour]&fridaystartminute=[Friday Start Minute]&workingdays=[Working days like 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]&describe=[describe]&name=[Name]&tuesdaystartminute=[Tuesday Start Minute]&mondaystarthour=[ Monday Start Hour]&fridaystartminute=[Friday Start Minute]&workingdays=[Working days like 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&describe=sample describe&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]&describe=[describe]&newbusinessname=[Name]&tuesdaystartminute=[Tuesday Start Minute]&mondaystarthour=[ Monday Start Hour]&fridaystartminute=[Friday Start Minute]&workingdays=[Working days like 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]&describe=[describe]&newbusinessname=[Name]&tuesdaystartminute=[Tuesday Start Minute]&mondaystarthour=[ Monday Start Hour]&fridaystartminute=[Friday Start Minute]&workingdays=[Working days like 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&describe=sample describe new describe&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