@@ 157-166 (lines=10) @@ | ||
154 | /** |
|
155 | * {@inheritdoc} |
|
156 | */ |
|
157 | public function getVideoDownloadUrls($videoManagerId, $videoId) |
|
158 | { |
|
159 | $response = $this->makeRequest('GET', sprintf('videos/%s/download-urls', $videoId), [ |
|
160 | self::OPT_VIDEO_MANAGER_ID => $videoManagerId, |
|
161 | ]); |
|
162 | ||
163 | $response = $response->getBody()->getContents(); |
|
164 | ||
165 | return $this->deserialize($response, 'ArrayCollection<'.VideoDownloadUrl::class.'>'); |
|
166 | } |
|
167 | ||
168 | /** |
|
169 | * {@inheritdoc} |
|
@@ 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} |