| 1 | <?php |
||
| 8 | class RestClient |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Contains the Economic_Request object. |
||
| 12 | **/ |
||
| 13 | public $request; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * __construct function. |
||
| 17 | * |
||
| 18 | * Instantiates the main class. |
||
| 19 | * Creates a client which is passed to the request construct. |
||
| 20 | * |
||
| 21 | * @auth_string string Authentication string for Economic |
||
| 22 | * |
||
| 23 | * @param string $secret_token |
||
| 24 | * @param string $grant_token |
||
| 25 | * |
||
| 26 | * @throws API\Exception |
||
| 27 | */ |
||
| 28 | 4 | public function __construct($secret_token = '', $grant_token = '') |
|
| 33 | } |
||
| 34 |