1 | <?php |
||
6 | class Subscription extends Base |
||
7 | { |
||
8 | /** |
||
9 | * Private constructor so only the client can create this |
||
10 | * @param Client $client |
||
11 | */ |
||
12 | public function __construct(Client $client) |
||
17 | |||
18 | /** |
||
19 | * Get one or multiple subscriptions |
||
20 | * @param string subscription 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($subscriptionId = null) |
||
31 | |||
32 | /** |
||
33 | * Create new subscription |
||
34 | * @param object Containing all the information of a subscription |
||
35 | * @return object Result of the request |
||
36 | */ |
||
37 | public function Create($subscription) |
||
41 | |||
42 | /** |
||
43 | * Create new subscription |
||
44 | * @param id of the subscription |
||
45 | * @param object Containing all the information of a subscription |
||
46 | * @return object Result of the request |
||
47 | */ |
||
48 | public function Update($subscription) |
||
55 | |||
56 | /** |
||
57 | * Delete a subscription object by subscription id |
||
58 | * @param string Id of the subscription |
||
59 | * @return object Result of the request |
||
60 | */ |
||
61 | public function Delete($subscriptionId) |
||
65 | } |
||
66 |