@@ 143-153 (lines=11) @@ | ||
140 | * @return response |
|
141 | * @throws \Exception |
|
142 | */ |
|
143 | public function getAsset($id) |
|
144 | { |
|
145 | $params = array( 'id' => $id ); |
|
146 | $params = $this->validator->validate($params); |
|
147 | ||
148 | try { |
|
149 | return $this->client->sendRequest('assets/{id}', $params, 'GET'); |
|
150 | } catch (\Exception $ex) { |
|
151 | throw $ex; |
|
152 | } |
|
153 | } |
|
154 | ||
155 | /** |
|
156 | * Deletes asset by ID |
|
@@ 162-172 (lines=11) @@ | ||
159 | * @return response |
|
160 | * @throws \Exception |
|
161 | */ |
|
162 | public function deleteAsset($id) |
|
163 | { |
|
164 | $params = array( 'id' => $id ); |
|
165 | $params = $this->validator->validate($params); |
|
166 | ||
167 | try { |
|
168 | return $this->client->sendRequest('assets/{id}', $params, 'DELETE'); |
|
169 | } catch (\Exception $ex) { |
|
170 | throw $ex; |
|
171 | } |
|
172 | } |
|
173 | ||
174 | /** |
|
175 | * Gets the list of available assets |