Skip to content

jes490/uon

 
 

Repository files navigation

U-On Travel Logo

Latest Stable Version Build Status Total Downloads License PHP 7 ready Code Climate Scrutinizer CQ

U-On Travel RESTful API Client (unofficial)

A simple client that allows to work with RESTful API of U-On Travel company.

composer require drteam/uon

This library is ready for production usage, all source codes provided "as is".

Example of usage

<?php
require_once __DIR__ . "/../vendor/autoload.php";

// Class with configuration options
$config = new \UON\Config();
$config
    ->set('token', 'some_token')
    ->set('timeout', 10);

// Main object for work with API
$uon = new \UON\API($config);

// Some examples
$users = $uon->users->all();            // Get a list of all users
$user = $uon->users->get(1);            // Get user by unique id
$request = $uon->requests->get(1);      // Get request by unique ID
$managers = $uon->misc->getManagers();  // Get list of managers

See other examples of usage here separated by class names.

All available methods of all classes with descriptions you can find here.

How to get API token

You need login into your account, then go to the Settings > API and WebHooks page and copy token code from API block.

How to help to project

If you have a desire, you can help with testing and bugs hunting or make some donation.

Useful links

About

U-On Travel RESTful API PHP Client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%