PHP code example of techsemicolon / hubstaff
1. Go to this page and download the library: Download techsemicolon/hubstaff library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
techsemicolon / hubstaff example snippets
use Hubstaff\Hubstaff;
//Get instance of Hubstaff
$hubstaff = Hubstaff::getInstance();
// Authenticate hubstaff with credentials you have
$appToken = 'your_app_token';
$email = 'your_hubstaff_email';
$password = 'your_hubstaff_password';
$authToken = 'your_auth_token';
$hubstaff->authenticate($appToken, $email, $password, $authToken);
//Get Repository you want and call the method on the same
$users = $hubstaff->getRepository('user')->getAllUsers();