1 | <?php |
||
10 | class Viddler |
||
11 | { |
||
12 | public $apiKey = null; |
||
13 | public $secure = false; |
||
14 | protected $requestClass = Request::class; |
||
15 | |||
16 | // Constructor |
||
17 | 9 | public function __construct($apiKey = null, $secure = false) |
|
22 | |||
23 | /** |
||
24 | * Can be called like such: |
||
25 | * $__api = new Viddler_API("YOUR KEY"); |
||
26 | * $array = $__api->viddler_users_getProfile(array("user"=>"phpfunk")); |
||
27 | */ |
||
28 | 6 | public function __call($method, $args) |
|
32 | |||
33 | /** |
||
34 | * Format the Method |
||
35 | * Accepted Formats: |
||
36 | * |
||
37 | * $viddler->viddler_users_auth(); |
||
38 | */ |
||
39 | 6 | protected function call($method, $args) |
|
45 | } |
||
46 |