for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Lenius\Economic;
use Lenius\Economic\API\Client;
use Lenius\Economic\API\Request;
class RestClient
{
/**
* Contains the Economic_Request object.
**/
public $request;
* __construct function.
*
* Instantiates the main class.
* Creates a client which is passed to the request construct.
* @auth_string string Authentication string for Economic
* @param string $secret_token
* @param string $grant_token
* @throws API\Exception
*/
public function __construct($secret_token = '', $grant_token = '')
$client = new Client($secret_token, $grant_token);
$this->request = new Request($client);
}