1 | <?php |
||
6 | class Profile 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 profiles |
||
20 | * @param string profile id, leave null for list of profiles |
||
21 | * @param object Containing query arguments |
||
22 | * @return object Result of the request |
||
23 | */ |
||
24 | public function Get($profileId = null, $args = array("limit" => 50)) |
||
31 | |||
32 | /** |
||
33 | * Create new profile |
||
34 | * @param object Containing all the information of a profile |
||
35 | * @return object Result of the request |
||
36 | */ |
||
37 | public function Create($profile) |
||
41 | |||
42 | /** |
||
43 | * Delete a profile by profileid |
||
44 | * @param string Id of the profile to be deleted |
||
45 | * @return object Result of the request |
||
46 | */ |
||
47 | public function Delete($profileId) |
||
51 | |||
52 | /** |
||
53 | * Update a profile |
||
54 | * @param object Profile containing the profileid and fields that need to be updated |
||
55 | * @throws \Exception When profileid is not present |
||
56 | * @return object Result of the request |
||
57 | */ |
||
58 | public function Update($profile) |
||
65 | |||
66 | /** |
||
67 | * Updates a maximum of 50 profiles at a time. |
||
68 | * @param array Containing profiles with a maximum of 50 |
||
69 | * @throws \Exception When more that 50 profiles are provided |
||
70 | * @return object Result of the request |
||
71 | */ |
||
72 | public function Bulk($profiles) |
||
80 | } |
||
81 |