1 | <?php |
||
4 | class Tric extends Base |
||
5 | { |
||
6 | /** |
||
7 | * Private constructor so only the client can create this |
||
8 | * @param string $apikey |
||
9 | * @param string $projectid |
||
10 | */ |
||
11 | public function __construct($apikey, $projectid) |
||
15 | |||
16 | /** |
||
17 | * Get one or multiple trics |
||
18 | * @param string tric id, leave null for list of boxes |
||
19 | * @param object Containing query arguments |
||
20 | * @return object Result of the request |
||
21 | */ |
||
22 | public function Get($tricId = null, $args = array("limit" => 50)) |
||
26 | |||
27 | /** |
||
28 | * Create new tric |
||
29 | * @param object Containing all the information of a tric |
||
30 | * @return object Result of the request |
||
31 | */ |
||
32 | public function Create($tric) |
||
36 | |||
37 | /** |
||
38 | * Update a tric |
||
39 | * @param id of the tric |
||
40 | * @param object Containing all the information of a tric |
||
41 | * @return object Result of the request |
||
42 | */ |
||
43 | public function Update($tric) |
||
50 | |||
51 | /** |
||
52 | * Delete a tric object by tric id |
||
53 | * @param string Id of the tric |
||
54 | * @return object Result of the request |
||
55 | */ |
||
56 | public function Delete($tricId) |
||
60 | |||
61 | /** |
||
62 | * Do a tric object by tric id. |
||
63 | * @param string Id of the tric |
||
64 | * @return object Result of the request |
||
65 | */ |
||
66 | public function Run($tricId) |
||
70 | } |
||
71 |