dev-master
9999999-dev https://github.com/mtasuandi/tiket-phpTiket.com PHP Wrapper
MIT
The Requires
- php >=5.5.0
- guzzlehttp/guzzle ~6.0
The Development Requires
tiket.com api tiket.com tiket
Wallogit.com
2017 © Pedro Peláez
Tiket.com PHP Wrapper
Tiket.com PHP Library http://docs.tiket.com/., (*2)
Register for an API key for production here and for development here., (*3)
composer require mtasuandi/tiket-php dev-master
By default, the API will point to sandbox url. If you want to change to production, change Util/config.php., (*4)
From:, (*5)
'settings' => [
'version' => '1.0',
/**
* Determine application environment
* Development: api-sandbox
* Production: api
*/
'api' => 'api-sandbox'
]
To:, (*6)
'settings' => [
'version' => '1.0',
/**
* Determine application environment
* Development: api-sandbox
* Production: api
*/
'api' => 'api'
]
<?php
require_once __DIR__ . '/../vendor/autoload.php';
use Mtasuandi\Tiket\Auth\TiketAuth;
use Mtasuandi\Tiket\Exceptions\AuthException;
$auth = new TiketAuth( 'API_KEY' );
try {
$access_token = $auth->getToken();
echo '
'; print_r( $access_token ); echo '
';
} catch (AuthException $e) {
echo $e->getMessage();
}
The MIT License (MIT)., (*7)
Tiket.com PHP Wrapper
MIT
tiket.com api tiket.com tiket