The ShiftPlanning API allows you to call modules within the ShiftPlanning employee scheduling software that respond in REST style JSON & XML.
This repository contains the open source PHP SDK that allows you to utilize the above on your website. Except as otherwise noted, the ShiftPlanning PHP SDK is licensed under the Apache Licence, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html)
The examples are a good place to start. The minimal you'll need to have is:
<?php
require './shiftplanning.php';
$shiftplanning = new Shiftplanning(
array(
'key' => 'XXXXXXXXXXXXXXXXXX' // enter your developer key
)
);
To make API calls:
$shifts = $shiftplanning->setRequest(
array(
'module' => 'schedule.shifts',
'start_date' => 'today',
'start_date' => 'today',
'mode' => 'overview'
)
);
Logged in vs Logged out:
if ($session = $shiftplanning->getSession( )) {
// LOGGED IN
} else {
// LOGGED OUT
}
We are relying on the GitHub issues tracker linked from above for feedback. File bugs or other issues here.