1 | <?php |
||
6 | class Touchpoint extends Base |
||
7 | { |
||
8 | /** |
||
9 | * Private constructor so only the client can create this |
||
10 | * @param Client $client |
||
11 | */ |
||
12 | 20 | public function __construct(Client $client) |
|
17 | |||
18 | /** |
||
19 | * Get one or multiple touchpoints |
||
20 | * @param string touchpoint id, leave null for list of boxes |
||
21 | * @param object Containing query arguments |
||
22 | * @return object Result of the request |
||
23 | */ |
||
24 | public function Get($touchpointId = null, $args = array("limit" => 50)) |
||
31 | |||
32 | /** |
||
33 | * Create new touchpoint |
||
34 | * @param object Containing all the information of a touchpoint |
||
35 | * @return object Result of the request |
||
36 | */ |
||
37 | public function Create($touchpoint) |
||
41 | |||
42 | /** |
||
43 | * Update a touchpoint |
||
44 | * @param id of the touchpoint |
||
45 | * @param object Containing all the information of a touchpoint |
||
46 | * @return object Result of the request |
||
47 | */ |
||
48 | public function Update($touchpoint) |
||
55 | |||
56 | /** |
||
57 | * Delete a touchpoint object by touchpoint id |
||
58 | * @param string Id of the touchpoint |
||
59 | * @return object Result of the request |
||
60 | */ |
||
61 | public function Delete($touchpointId) |
||
65 | |||
66 | /** |
||
67 | * Retrieve stats a touchpoint object by touchpoint id |
||
68 | * @param string Id of the touchpoint |
||
69 | * @return object Result of the request |
||
70 | */ |
||
71 | public function Stats($touchpointId, $args = []) |
||
75 | |||
76 | /** |
||
77 | * Retrieve content of a touchpoint object by touchpoint id |
||
78 | * @param string Id of the touchpoint |
||
79 | * @return object Result of the request |
||
80 | */ |
||
81 | public function Content($touchpointId, $args = []) |
||
85 | } |
||
86 |