Get Time Summary
| Function: | Retrieves the time tracked for a particular period of time. This can be viewed by Jobs or Companies |
| Web service call: | https://proworkflow2.net/pwfaccountname/api/time.cfm?customerkey=84DC6CF8-BF78-D79D-B25B-0C0D20229F17&api_call=timesummary&viewby=projects&startdate=01-sep-2009&enddate=01-oct-2009&UserID=xxx |
| Method: | GET |
| URL Parameters: | viewby, startdate and endate are mandatory. UserID should be passed if viewing information for a particular user. Default is set to ALL. |
| Notes: | 1. Viewby parameter can be set to either projects or companies. Depending on the viewby parameter the API will return the XML packet containing the data necessary for that display. 2. Startdate and enddate should be passed with the date format specified in the documentation which is dd-mmm-yyyy. |
| Return Data: | XML data packet of ContactsList detail is constructed by the web service and sent to the user. |
| Status messages: | OK or Error. |
Example of Project View return data:
- <?xml version="1.0" encoding="UTF-8"?>
- <TimeRecords>
- <Status>OK</Status>
- <TimeRecords_Count>1</TimeRecords_Count>
- <TimeRecordList>
- <Job>
- <JobDetails>
- <JobId>1</JobId>
- <JobNumber>BC001</JobNumber>
- <JobTitle>Sample Job</JobTitle>
- <JobAllocatedTime>10:10</JobAllocatedTime>
- <TotalJobTimeSpent>10:10</TotalJobTimeSpent>
- <JobClientID>167</JobClientID>
- <ClientName>Sample Client</ClientName>
- <ContactTypeID>1</ContactTypeID>
- </JobDetails>
- <JobTasks>
- <Task>
- <TaskID>1</TaskID>
- <TaskTitle>Sample Task</TaskTitle>
- <TaskAllocatedTime>5:10</TaskAllocatedTime>
- <TotalTaskTimeSpent>10:10</TotalTaskTimeSpent>
- </Task>
- </JobTasks>
- </Job>
- </TimeRecordList>
- <TotalDateRangeTime>10.10</TotalDateRangeTime>
- </TimeRecords>
Example of Company View return data:
- <?xml version="1.0" encoding="UTF-8"?>
- <TimeRecords>
- <Status>OK</Status>
- <TimeRecords_Count>1</TimeRecords_Count>
- <TimeRecordList>
- <Client>
- <ClientName>Sample Client</ClientName>
- <ClientID>1</ClientID>
- <ContactTypeID>1</ContactTypeID>
- <Job>
- <JobDetails>
- <JobId>1</JobId>
- <JobNumber>BC001</JobNumber>
- <JobTitle>Sample Job</JobTitle>
- <JobAllocatedTime>10:10</JobAllocatedTime>
- <TotalJobTimeSpent>10:10</TotalJobTimeSpent>
- </JobDetails>
- <JobTasks>
- <Task>
- <TaskID>1</TaskID>
- <TaskTitle>Sample Task</TaskTitle>
- <TaskAllocatedTime>5:10</TaskAllocatedTime>
- <TotalTaskTimeSpent>10:10</TotalTaskTimeSpent>
- </Task>
- </JobTasks>
- </Job>
- </Client>
- </TimeRecordList>
- <TotalDateRangeTime>10.10</TotalDateRangeTime>
- </TimeRecords>




