Function: Stops the Timer
Web service call: https://proworkflow2.net/pwfaccountname/api/v2/time.cfm?customerkey=84DC6CF8-BF78-D79D-B25B-0C0D20229F17&api_call=stoptimer&TrackerID=xxx&UserID=xxx
Method: GET
URL Parameters: TrackerID and Userid are mandatory.
Notes: User Permissions are also checked.
Return Data: XML data packet is constructed by the web service and sent to the user. It contains the success or failure message.
Status messages: Success, Failure or Error.

 

Example of return data:
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <stoptimer>
  3. <status>Success</status>
  4. <details>
  5. <message>Timer Stopped</message>
  6. <timerecord>
  7. <trackerid>3679</trackerid>
  8. <trackertaskid>34</trackertaskid>
  9. <trackernotes>Sample notes</trackernotes>
  10. <trackercontactid>3</trackercontactid>
  11. <trackerdate>15-Feb-2009</trackerdate>
  12. <trackeractive>1</trackeractive>
  13. <trackertimestarted>12.30</trackertimestarted>
  14. <trackertimefinished>15.20</trackertimefinished>
  15. <trackertimespent>170</trackertimespent>
  16. <trackerdeleted>1</trackerdeleted>
  17. <trackerpaused>0</trackerpaused>
  18. </timerecord>
  19. </details>
  20. </stoptimer>
  21.  
  22. OR
  23.  
  24. <?xml version="1.0" encoding="UTF-8"?>
  25. <stoptimer>
  26. <status>Failure</status>
  27. <details>
  28. <message>Error: You don't have permission to perform this action.</message>
  29. </details>
  30. </stoptimer>
VN:F [1.7.5_995]
Was this article useful?