常规设置 API

时间追踪常规设置 API

此 API 用于获取时间追踪的常规设置。

请求 URL:

http://people.zoho.com.cn/people/api/timetracker/gettimetrackersettings?authtoken=<authtoken>

请求参数:

authtoken 指定身份验证令牌

示例 URL:

http://people.zoho.com.cn/people/api/timetracker/gettimetrackersettings?authtoken=28ac426a249678c8867a0d93bb373912

XML 响应:

<?xml version="1.0" response uri="/api/timetracker/gettimetrackersettings">
<status>0</status>
<message>Timetracker general settings fetched successfully</message>
<result>
<settings>
<TS_BillnoPrefix>ABC</TS_BillnoPrefix>
<TS_manualLog>true</TS_manualLog>
<TS_Schedule>281496000000151265</TS_Schedule>
<TS_sendMailForJobComplete>true</TS_sendMailForJobComplete>
<TS_jobOwners>2</TS_jobOwners>
<TS_timerEdit>0</TS_timerEdit>
<TS_automaticLog>true</TS_automaticLog>
<TS_hoursLog>true</TS_hoursLog>
<TS_DefaultView>1</TS_DefaultView>
<TS_billingtimesheetType>2</TS_billingtimesheetType>
<TS_clienttimesheetType>0</TS_clienttimesheetType>
<TS_startEndLog>true</TS_startEndLog>
<TS_BillnoAuto>1</TS_BillnoAuto>
<TS_Billno>1030</TS_Billno>
<TS_BillnoStarts>10003</TS_BillnoStarts>
<TS_sendMailForJobAdd>true</TS_sendMailForJobAdd>
<TS_defaultbillingType>1</TS_defaultbillingType>
<TS_timesheetOwners>0</TS_timesheetOwners>
</settings>
</result>
</response>

JSON 响应:

{ "response": { "message": "Timetracker general settings fetched successfully", "result": { "TS_BillnoPrefix": "ABC", "TS_manualLog": "true", "TS_Schedule": "281496000000151265", "TS_sendMailForJobComplete": "true", "TS_jobOwners": "2", "TS_timerEdit": "0", "TS_automaticLog": "true", "TS_hoursLog": "true", "TS_DefaultView": "1", "TS_billingtimesheetType": "2", "TS_clienttimesheetType": "0", "TS_startEndLog": "true", "TS_BillnoAuto": "1", "TS_Billno": "1030", "TS_BillnoStarts": "10003", "TS_sendMailForJobAdd": "true", "TS_defaultbillingType": "1", "TS_timesheetOwners": "0" }, "status": 0, "uri": "/api/timetracker/gettimetrackersettings" } }

解释:

  • TS_manualLog: true - 允许手动时间记录
  • TS_automaticLog: true - 允许计时器记录
  • TS_BillnoAuto: 0 - 账单号人工录入;1 - 自动账单号生成
  • TS_defaultbillingType: 0 - 可计费;1 - 不可计费
  • TS_jobOwners: 0 - 任何人都可添加工作;1 - 仅报告经理可添加工作;2 - 仅管理员可添加工作
  • TS_timerEdit: 0 - 任何人都可编辑计时器条目;1 - 仅报告经理可添加工作;2 - 仅管理员可添加工作
  • TS_DefaultView: 0 - 每天视图;1 - 每周视图;2 - 每月视图