1 | <?php |
||
6 | class NextBestAction 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 nextbestactions |
||
20 | * @param string nextbestaction 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($nextbestactionId = null, $args = array("limit" => 50)) |
||
31 | |||
32 | /** |
||
33 | * Create new nextbestaction |
||
34 | * @param object Containing all the information of a nextbestaction |
||
35 | * @return object Result of the request |
||
36 | */ |
||
37 | public function Create($nextbestaction) |
||
41 | |||
42 | /** |
||
43 | * Update a nextbestaction |
||
44 | * @param object Containing all the information of a nextbestaction |
||
45 | * @return object Result of the request |
||
46 | */ |
||
47 | public function Update($nextbestaction) |
||
54 | |||
55 | /** |
||
56 | * Delete a nextbestaction object by nextbestaction id |
||
57 | * @param string Id of the nextbestaction |
||
58 | * @return object Result of the request |
||
59 | */ |
||
60 | public function Delete($nextbestactionId) |
||
64 | |||
65 | /** |
||
66 | * Delete a nextbestaction object by nextbestaction id |
||
67 | * @param string Id of the nextbestaction |
||
68 | * @return object Result of the request |
||
69 | */ |
||
70 | public function Schedule($nextbestactionId) |
||
74 | |||
75 | /** |
||
76 | * Delete a nextbestaction object by nextbestaction id |
||
77 | * @param string Id of the nextbestaction |
||
78 | * @return object Result of the request |
||
79 | */ |
||
80 | public function Assign($nextbestactionId) |
||
84 | } |
||
85 |