Skip to content

PHP class providing methods to easily communicate with the mite.api

License

Notifications You must be signed in to change notification settings

thomasklein/mite.php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP class providing methods to easily communicate with the mite.api

mite (https://mite.yo.lk/en) is a sleek time tracking tool for teams and freelancers.

Example usage:

require_once("path_to_class/mite.php");

$o_mite = mite::getInstance();
$o_mite->init(<YOUR_API_KEY>,<YOUR_ACCOUNT_SUBDOMAIN>, 'my_app_name/v1.2.3');
try {
    $o_responseXML = $o_mite->sendRequest('get', '/time_entries.xml');
} catch (Exception $e) {
    echo "<p>" . $e->getMessage() . "</p>";
}