1 | <?php |
||
6 | class Behavior extends Base |
||
7 | { |
||
8 | /** |
||
9 | * Private constructor so only the client can create this |
||
10 | * @param Client $client |
||
11 | */ |
||
12 | 11 | public function __construct(Client $client) |
|
17 | |||
18 | /** |
||
19 | * Get a list of behaviors |
||
20 | * @param object Containing query arguments |
||
21 | * @return object Result of the request |
||
22 | */ |
||
23 | public function Get($args = array("limit" => 50)) |
||
27 | |||
28 | /** |
||
29 | * Get a list of Visits |
||
30 | * @param object Containing query arguments |
||
31 | * @return object Result of the request |
||
32 | */ |
||
33 | public function GetVisit($args = array("limit" => 50)) |
||
37 | |||
38 | /** |
||
39 | * Get one or multiple events |
||
40 | * @param string event id, leave null for list of events |
||
41 | * @param object Containing query arguments |
||
42 | * @return object Result of the request |
||
43 | */ |
||
44 | public function GetEvent($eventId = null, $args = array("limit" => 50)) |
||
51 | |||
52 | /** |
||
53 | * Create new event |
||
54 | * @param object Containing all the information of a event |
||
55 | * @return object Result of the request |
||
56 | */ |
||
57 | public function CreateEvent($event) |
||
61 | |||
62 | /** |
||
63 | * Update a event |
||
64 | * @param object Event containing the eventid and fields that need to be updated |
||
65 | * @throws \Exception When eventid is not present |
||
66 | * @return object Result of the request |
||
67 | */ |
||
68 | public function UpdateEvent($event) |
||
76 | |||
77 | /** |
||
78 | * Updates a maximum of 50 events at a time. |
||
79 | * @param array Containing events with a maximum of 50 |
||
80 | * @throws \Exception When more that 50 events are provided |
||
81 | * @return object Result of the request |
||
82 | */ |
||
83 | public function Bulk($events) |
||
90 | } |
||
91 |