@@ 260-269 (lines=10) @@ | ||
257 | /** |
|
258 | * {@inheritdoc} |
|
259 | */ |
|
260 | public function getAttachments($videoManagerId, $videoId) |
|
261 | { |
|
262 | $response = $this->makeRequest( |
|
263 | 'GET', |
|
264 | sprintf('videos/%s/attachments', $videoId), |
|
265 | [self::OPT_VIDEO_MANAGER_ID => $videoManagerId] |
|
266 | ); |
|
267 | ||
268 | return $this->deserialize($response->getBody()->getContents(), 'ArrayCollection<'.Attachment::class.'>'); |
|
269 | } |
|
270 | ||
271 | /** |
|
272 | * {@inheritdoc} |
|
@@ 274-283 (lines=10) @@ | ||
271 | /** |
|
272 | * {@inheritdoc} |
|
273 | */ |
|
274 | public function getChannelAttachments($videoManagerId, $channelId) |
|
275 | { |
|
276 | $response = $this->makeRequest( |
|
277 | 'GET', |
|
278 | sprintf('channels/%s/attachments', $channelId), |
|
279 | [self::OPT_VIDEO_MANAGER_ID => $videoManagerId] |
|
280 | ); |
|
281 | ||
282 | return $this->deserialize($response->getBody()->getContents(), 'ArrayCollection<'.Attachment::class.'>'); |
|
283 | } |
|
284 | ||
285 | /** |
|
286 | * {@inheritdoc} |
|
@@ 288-297 (lines=10) @@ | ||
285 | /** |
|
286 | * {@inheritdoc} |
|
287 | */ |
|
288 | public function getKeywords($videoManagerId, $videoId) |
|
289 | { |
|
290 | $response = $this->makeRequest( |
|
291 | 'GET', |
|
292 | sprintf('videos/%s/keywords', $videoId), |
|
293 | [self::OPT_VIDEO_MANAGER_ID => $videoManagerId] |
|
294 | ); |
|
295 | ||
296 | return $this->deserialize($response->getBody()->getContents(), 'ArrayCollection<'.Keyword::class.'>'); |
|
297 | } |
|
298 | ||
299 | /** |
|
300 | * {@inheritdoc} |