public function downloadArchive(array $ids, $template = null, CachePolicy $cachePolicy = null)
        {
            $parameters = [
            'query' => ['ids' => $ids, 'template' => $template],
            'body' => json_encode([]),
            'headers' => [],
        ];

            $result = $this->get('v1/media/download', $parameters, $cachePolicy);

            return $result;
        }
public function downloadArchive(array $ids, $template = null, CachePolicy $cachePolicy = null)
        {
            $parameters = [
            'query' => ['ids' => $ids, 'template' => $template],
            'body' => json_encode([]),
            'headers' => [],
        ];

            $result = $this->get('v1/media/download', $parameters, $cachePolicy);

            return $result;
        }
public function downloadArchive ( array $ ids , $ template = null , CachePolicy $ cachePolicy = null ) { $ parameters = [ 'query' => [ 'ids' => $ ids , 'template' => $ template ] , 'body' => json_encode ( [ ] ) , 'headers' => [ ] , ] ; $ result = $ this -> get ( 'v1/media/download' , $ parameters , $ cachePolicy ) ; return $ result ; }
Downloads an archive of several Media.

. You may append an optional template parameter to the query. Omitting the template parameter will return the original files.

@param int[]       $ids         array of Media ID:s to download
@param string      $template    Optional template to download all Media in..
@param CachePolicy $cachePolicy a custom cache policy used for this request only
Downloads an archive of several Media .