Onfleet-PHP is an API wrapper for Onfleet's APIs.
Include Onfleet.php into your .php file.
include "Onfleet.php";
You can create an instance of the API wrapper:
$config = array("api_name" => "Replace with Name", "api_key" => "Replace with key");
$onfleet = new Onfleet($config);
Example to Create Administrator:
$params = array("name" => "Stuart Little", "email" => "[email protected]", "phone" => "6615991234");
$response = $onfleet->admin_create($params);
Example to List Tasks:
$params = array("state" => 0);
$response = $onfleet->tasks($params);
- Fork it ( https://github.com/billybateman/Onfleet-PHP/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request