Login Deutsch

Developers welcome! The mite.api is looking forward to your precious hacking. Have a look at the detailed documentation to kick-start your coding.

Please note

The time tracker can only be shown, started and stopped for the user signed in the mite.api.

Show

GET /tracker.xml

If the time tracker is running the mite.api will return the following response:

Response : 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<tracker>
   <tracking-time-entry>
      <minutes type="integer">2</minutes>
      <since type="datetime">2007-12-13T12:12:00+01:00</since>
      <id type="integer">1</id>
   </tracking-time-entry>
</tracker>

Is there is no time tracker running you will retrieve an empty response.

Response : 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<tracker></tracker>

Start

PUT /tracker/{id}.xml

Starts the time tracker on the time entry with the given ID.

Response : 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<tracker>
   <tracking-time-entry>
      <since type="datetime">2009-02-16T18:04:23+01:00</since>
      <minutes type="integer">0</minutes>
      <id type="integer">1</id>
   </tracking-time-entry>
</tracker>

If the time tracker is running on another time entry it will be stopped there. Only one time tracker can be tracking at a given time. You will retrieve the following response:

Response : 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<tracker>
   ...
   <stopped-time-entry>
      <minutes type="integer">225</minutes>
      <id type="integer">2</id>
   </stopped-time-entry>
</tracker>

Stop

DELETE /tracker/{id}.xml

Stops the time tracker on the time entry with the given ID.

Response : 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<tracker>
   <stopped-time-entry>
      <minutes type="integer">5</minutes>
      <id type="integer">1</id>
   </stopped-time-entry>
</tracker>