1 | <?php |
||
13 | class Stickers extends AbstractApi |
||
14 | { |
||
15 | protected $path = 'cards/#id#/stickers'; |
||
16 | |||
17 | /** |
||
18 | * Get stickers related to a given card |
||
19 | * @link https://trello.com/docs/api/card/#get-1-cards-card-id-or-shortlink-stickers |
||
20 | * |
||
21 | * @param string $id the card's id or short link |
||
22 | * @param array $params optional parameters |
||
23 | * |
||
24 | * @return array |
||
25 | */ |
||
26 | 1 | public function all($id, array $params = array()) |
|
30 | |||
31 | /** |
||
32 | * Get a given sticker on a given card |
||
33 | * @link https://trello.com/docs/api/card/#get-1-cards-card-id-or-shortlink-stickers-idsticker |
||
34 | * |
||
35 | * @param string $id the card's id or short link |
||
36 | * @param string $stickerId the sticker's id |
||
37 | * @param string|array $fields 'all' or a array of: |
||
38 | * - image |
||
39 | * - imageScaled |
||
40 | * - imageUrl |
||
41 | * - left |
||
42 | * - rotate |
||
43 | * - top |
||
44 | * - zIndex |
||
45 | * Defaults to 'all' |
||
46 | * |
||
47 | * @return array |
||
48 | */ |
||
49 | 1 | public function show($id, $stickerId, $fields = 'all') |
|
56 | |||
57 | /** |
||
58 | * Update a given sticker on a given card |
||
59 | * @link https://trello.com/docs/api/card/#put-1-cards-card-id-or-shortlink-stickers-idsticker |
||
60 | * |
||
61 | * @param string $id the card's id or short link |
||
62 | * @param string $stickerId the sticker's id |
||
63 | * @param array $params Parameters to update (all optional but at least one of them is required): |
||
64 | * - left |
||
65 | * - rotate |
||
66 | * - top |
||
67 | * - zIndex |
||
68 | * |
||
69 | * @return array |
||
70 | */ |
||
71 | 2 | public function update($id, $stickerId, array $params) |
|
78 | |||
79 | /** |
||
80 | * Create a given sticker on a given card |
||
81 | * @link https://trello.com/docs/api/card/#put-1-cards-card-id-or-shortlink-stickers-idsticker |
||
82 | * |
||
83 | * @param string $id the card's id or short link |
||
84 | * @param array $params Properties of the sticker |
||
85 | * - image (string) |
||
86 | * - top |
||
87 | * - left |
||
88 | * - zIndex |
||
89 | * - rotate (optional, default 0) |
||
90 | * @return array |
||
91 | */ |
||
92 | 2 | public function create($id, array $params) |
|
99 | |||
100 | /** |
||
101 | * Remove a given sticker from a given card |
||
102 | * @link https://trello.com/docs/api/card/#delete-1-cards-card-id-or-shortlink-stickers-idsticker |
||
103 | * |
||
104 | * @param string $id the card's id or short link |
||
105 | * @param string $stickerId the sticker's id |
||
106 | * |
||
107 | * @return array |
||
108 | */ |
||
109 | 1 | public function remove($id, $stickerId) |
|
113 | } |
||
114 |