示例 URL:
people.zoho.com.cn/people/api/timetracker/gettimesheet?authtoken=48552851f39b2455991e8eeab1a67d80&user=1&approvalStatus=pending
XML 响应:
<response uri="/api/timetracker/gettimesheet">
<status>0</status>
<message>Data fetched successfully</message>
<result>
<timesheet>
<erecno>293141000000061007</erecno>
<status>Pending</status>
<timesheetName>Timesheet</timesheetName>
<approvedBillableHours>0</approvedBillableHours>
<toDate>2015-05-14</toDate>
<employeeName>Guru F Guru L</employeeName>
<currency>USD</currency>
<ratePerHour>5.0</ratePerHour>
<approvedNonBillableHours>0</approvedNonBillableHours>
<approvedTotalAmount>0.0</approvedTotalAmount>
<fromDate>2015-05-14</fromDate>
<nonbillableHours>720</nonbillableHours>
<description>API input11</description>
<approvedTotalHours>0</approvedTotalHours>
<approvedRatePerHour>0.0</approvedRatePerHour>
<owner>293141000000061007</owner>
<totalAmount>210.0</totalAmount>
<totalHours>3240</totalHours>
<billableHours>2520</billableHours>
</timesheet>
<timesheet>
<erecno>293141000000061007</erecno>
<status>Pending</status>
<timesheetName>Timesheet_1</timesheetName>
<approvedBillableHours>0</approvedBillableHours>
<toDate>2015-05-14</toDate>
<employeeName>Guru F Guru L</employeeName>
<currency>USD</currency>
<ratePerHour>5.0</ratePerHour>
<approvedNonBillableHours>0</approvedNonBillableHours>
<approvedTotalAmount>0.0</approvedTotalAmount>
<fromDate>2015-05-14</fromDate>
<nonbillableHours>0</nonbillableHours>
<description>Time sheet description</description>
<approvedTotalHours>0</approvedTotalHours>
<approvedRatePerHour>0.0</approvedRatePerHour>
<owner>293141000000061007</owner>
<totalAmount>0.0</totalAmount>
<totalHours>0</totalHours>
<billableHours>0</billableHours>
</timesheet>
<timesheet>
<erecno>293141000000061007</erecno>
<status>Pending</status>
<timesheetName>Timesheet_1</timesheetName>
<approvedBillableHours>0</approvedBillableHours>
<toDate>2015-05-14</toDate>
<employeeName>Guru F Guru L</employeeName>
<currency>USD</currency>
<ratePerHour>5.0</ratePerHour>
<approvedNonBillableHours>0</approvedNonBillableHours>
<approvedTotalAmount>0.0</approvedTotalAmount>
<fromDate>2015-05-14</fromDate>
<nonbillableHours>0</nonbillableHours>
<description>Time sheet description</description>
<approvedTotalHours>0</approvedTotalHours>
<approvedRatePerHour>0.0</approvedRatePerHour>
<owner>293141000000061007</owner>
<totalAmount>0.0</totalAmount>
<totalHours>0</totalHours>
<billableHours>0</billableHours>
</timesheet>
<timesheet>
<erecno>293141000000061007</erecno>
<status>Pending</status>
<timesheetName>Timesheet_1</timesheetName>
<approvedBillableHours>0</approvedBillableHours>
<toDate>2015-05-14</toDate>
<employeeName>Guru F Guru L</employeeName>
<currency>USD</currency>
<ratePerHour>5.0</ratePerHour>
<approvedNonBillableHours>0</approvedNonBillableHours>
<approvedTotalAmount>0.0</approvedTotalAmount>
<fromDate>2015-05-14</fromDate>
<nonbillableHours>0</nonbillableHours>
<description>Time sheet description</description>
<approvedTotalHours>0</approvedTotalHours>
<approvedRatePerHour>0.0</approvedRatePerHour>
<owner>293141000000061007</owner>
<totalAmount>0.0</totalAmount>
<totalHours>0</totalHours>
<billableHours>0</billableHours>
</timesheet>
</result>
</response>
JSON 响应:
{ "response": { "message": "Data fetched successfully", "result": [ { "erecno": "293141000000061007", "status": "Pending", "timesheetName": "Timesheet", "approvedBillableHours": 0, "toDate": "2015-05-14", "employeeName": "Guru F Guru L", "currency": "USD", "ratePerHour": 5, "approvedNonBillableHours": 0, "approvedTotalAmount": 0, "fromDate": "2015-05-14", "nonbillableHours": 720, "description": "API input11", "approvedTotalHours": 0, "approvedRatePerHour": 0, "owner": "293141000000061007", "totalAmount": 210, "totalHours": 3240, "billableHours": 2520 }, { "erecno": "293141000000061007", "status": "Pending", "timesheetName": "Timesheet_1", "approvedBillableHours": 0, "toDate": "2015-05-14", "employeeName": "Guru F Guru L", "currency": "USD", "ratePerHour": 5, "approvedNonBillableHours": 0, "approvedTotalAmount": 0, "fromDate": "2015-05-14", "nonbillableHours": 0, "description": "Time sheet description", "approvedTotalHours": 0, "approvedRatePerHour": 0, "owner": "293141000000061007", "totalAmount": 0, "totalHours": 0, "billableHours": 0 }, { "erecno": "293141000000061007", "status": "Pending", "timesheetName": "Timesheet_1", "approvedBillableHours": 0, "toDate": "2015-05-14", "employeeName": "Guru F Guru L", "currency": "USD", "ratePerHour": 5, "approvedNonBillableHours": 0, "approvedTotalAmount": 0, "fromDate": "2015-05-14", "nonbillableHours": 0, "description": "Time sheet description", "approvedTotalHours": 0, "approvedRatePerHour": 0, "owner": "293141000000061007", "totalAmount": 0, "totalHours": 0, "billableHours": 0 }, { "erecno": "293141000000061007", "status": "Pending", "timesheetName": "Timesheet_1", "approvedBillableHours": 0, "toDate": "2015-05-14", "employeeName": "Guru F Guru L", "currency": "USD", "ratePerHour": 5, "approvedNonBillableHours": 0, "approvedTotalAmount": 0, "fromDate": "2015-05-14", "nonbillableHours": 0, "description": "Time sheet description", "approvedTotalHours": 0, "approvedRatePerHour": 0, "owner": "293141000000061007", "totalAmount": 0, "totalHours": 0, "billableHours": 0 } ], "status": 0, "uri": "/api/timetracker/gettimesheet" } }
示例 URL:
http://people.zoho.com.cn/people/api/timetracker/createtimesheet?authtoken=48552851f39b2455991e8eeab1a67d80&user=293141000000061007×heetName=Timesheet_1&description=Time sheet description&sendforApproval=true&fromDate=2015-05-14&toDate=2015-05-14&jobId=all&billingStatus=nonbillable
XML 响应:
<response uri="/api/timetracker/createtimesheet">
<status>0</status>
<message>Timesheet created successfully</message>
<result>
<timesheetId>293141000000146001</timesheetId>
</result>
</response>
JSON 响应:
{ "response": { "message": "Timesheet created successfully", "result": [ { "timesheetId": "293141000000146007" } ], "status": 0, "uri": "/api/timetracker/createtimesheet" } }
示例 URL:
http://people.zoho.com.cn/people/api/timetracker/modifytimesheet?authtoken=48552851f39b2455991e8eeab1a67d80×heetId=293141000000061007×heetName=Timesheet_1&description=Time sheet description&sendforApproval=true
XML 响应:
<response uri="/api/timetracker/modifytimesheet">
<status>0</status>
<message>Timesheet modified successfully</message>
<result>
<timesheetId>293141000000146001</timesheetId>
</result>
</response>
JSON 响应:
{ "response": { "message": "Timesheet modified successfully", "result": [ { "timesheetId": "293141000000146007" } ], "status": 0, "uri": "/api/timetracker/modifytimesheet" } }