mobianglobal/reseller-api

This package is abandoned and no longer maintained. The author suggests using the mobianglobal/mobian-api-php package instead.

MOBIAN Global Reseller API package.

1.0.0 2020-04-09 08:57 UTC

This package is auto-updated.

Last update: 2020-04-09 09:00:14 UTC


README

The MOBIAN Reseller API can be used to book various travel services. For the resellers we tend to make the integration as easy as possible by setting up a default package. This should take care of the default requests and validations on the API side.

This package is actively maintained with the API's versions to make switching between versions less of a pain as well.

Necessities for the package;

  • PHP 5.6 or higher
  • cURL

Install

The recommended way to install the package is through Composer.

composer require mobianglobal/reseller-api-php

After installing, make sure you require Composer's autoloader:

require 'vendor/autoload.php';

You can then later update the package using composer:

composer update mobianglobal/reseller-api-php

Example usage

use Mobian\ResellerApi\ApiClient;
use Mobian\ResellerApi\ApiConfig;
use Mobian\ResellerApi\Requests\Bookings\FetchAll as FetchBookingsRequest;

// Setup reseller authentication key
ApiConfig::setAuthKey('RESELLER_KEY_HERE');

$request = new FetchBookingsRequest([
    'order_id' => 1234567890,
]);

$bookings = ApiClient::request($request);