Get the list of supported certifications for movies.

These can be used in conjunction with the certification_country
and certification.lte parameters when using discover.

@param $parameters
@param $headers
@return \Tmdb\Model\Common\GenericCollection
505703
public function getMovieList(array $parameters = [], array $headers = [])
    {
        $data  = $this->getApi()->getMovieList($this->parseQueryParameters($parameters), $headers);

        return $this->getFactory()->createCollection($data);
    }
692661
protected function getRequestHeaders(array $headers)
    {
        $requestHeaders = '';

        foreach ($this->headers as $name => $value) {
            if (!isset($headers[$name])) {
                $requestHeaders .= "$name: $value\r\n";
            }
        }

        foreach ($headers as $name => $value) {
            if (is_numeric($name)) {
                throw new RuntimeException("Invalid HTTP header name $name");
            }

            $requestHeaders .= "$name: $value\r\n";
        }

        return $requestHeaders;
    }
916133
protected function detectFormatByHeaders(HeaderCollection $headers)
    {
        $contentTypeHeaders = $headers->get('content-type', null, false);

        if (!empty($contentTypeHeaders)) {
            $contentType = end($contentTypeHeaders);
            if (stripos($contentType, 'json') !== false) {
                return Client::FORMAT_JSON;
            }
            if (stripos($contentType, 'urlencoded') !== false) {
                return Client::FORMAT_URLENCODED;
            }
            if (stripos($contentType, 'xml') !== false) {
                return Client::FORMAT_XML;
            }
        }

        return null;
    }
1014080
public static function listAllCollectionsAsync(array $parameters = [])
    {
        return self::listAllCollectionsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
1114741
public function getOnTheAir(array $options = [], array $headers = [])
    {
        return $this->getFactory()->createResultCollection(
            $this->getApi()->getOnTheAir($options, $headers)
        );
    }
1373136
public function getRoutesByNames($names, $parameters = [])
    {
        $qb = $this->pageRepository->createQueryBuilder('p');
        $qb
            ->select('p.route, p.controller, t.path, t.locale')
            ->join('p.translations', 't')
            ->andWhere($qb->expr()->eq('p.static', 0))
        ;
        if (is_array($names) && !empty($names)) {
            $qb->andWhere($qb->expr()->in('p.route', $names));
        } elseif (is_string($names) && 0 < strlen($names)) {
            $qb->andWhere($qb->expr()->eq('p.route', $qb->expr()->literal($names)));
        }

        $results = $qb->getQuery()->getArrayResult();

        return $this->transformResultsToRoutes($results);
    }
30822
public function getMovies($id, array $parameters = [], array $headers = [])
    {
        return $this->getFactory()->createResultCollection(
            $this->getApi()->getMovies($id, $parameters, $headers),
            'createMovie'
        );
    }
91889
private function _addRequiredParameters(array $parameters)
    {
        $parameters['AWSAccessKeyId'] = $this->_awsAccessKeyId;
        $parameters['Timestamp'] = $this->_getFormattedTimestamp();
        $parameters['Version'] = self::SERVICE_VERSION;
        $parameters['SignatureVersion'] = $this->_config['SignatureVersion'];
        if ($parameters['SignatureVersion'] > 1) {
            $parameters['SignatureMethod'] = $this->_config['SignatureMethod'];
        }
        $parameters['Signature'] = $this->_signParameters($parameters, $this->_awsSecretAccessKey);

        return $parameters;
    }
245087
public static function listAllPromotionsAsync(array $parameters = [])
    {
        return self::listAllPromotionsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
1244127
public function getCredentials(IHttpHeaders $headers) {
        $token = $this->getToken($headers);

        return $this->parseToken($token);
    }
1115513
public function getTranslations($id, array $parameters = [], array $headers = [])
    {
        $data  = $this->getApi()->getTranslations($id, $this->parseQueryParameters($parameters), $headers);
        $movie = $this->getFactory()->create(['translations' => $data]);

        return $movie->getTranslations();
    }
454364
protected function resolveHTTPAuth(array &$parameters, array &$headers)
    {
        $authorizationHeader = null;
        if (isset($parameters['HTTP_AUTHORIZATION'])) {
            $authorizationHeader = $parameters['HTTP_AUTHORIZATION'];
        } elseif (isset($parameters['REDIRECT_HTTP_AUTHORIZATION'])) {
            $authorizationHeader = $parameters['REDIRECT_HTTP_AUTHORIZATION'];
        }

        if ($authorizationHeader !== null && stripos($authorizationHeader, 'basic') === 0) {
            $exploded = explode(':', base64_decode(substr($authorizationHeader, 6)));
            if (count($exploded) == 2) {
                list($headers['PHP_AUTH_USER'], $headers['PHP_AUTH_PW']) = $exploded;
            }
        }
    }
697449
public static function listAllBrandsAsync(array $parameters = [])
    {
        return self::listAllBrandsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
1134650
public function getPopular(array $parameters = [], array $headers = [])
    {
        $data   = $this->getApi()->getPopular($parameters, $headers);

        return $this->getFactory()->createResultCollection($data);
    }
1280906
public function load($id, array $parameters = [], array $headers = [])
    {
        if (!isset($parameters['append_to_response'])) {
            $parameters = array_merge($parameters, [
                new AppendToResponse([
                    AppendToResponse::ALTERNATIVE_TITLES,
                    AppendToResponse::CHANGES,
                    AppendToResponse::CREDITS,
                    AppendToResponse::IMAGES,
                    AppendToResponse::KEYWORDS,
                    AppendToResponse::LISTS,
                    AppendToResponse::RELEASE_DATES,
                    AppendToResponse::REVIEWS,
                    AppendToResponse::SIMILAR,
                    AppendToResponse::RECOMMENDATIONS,
                    AppendToResponse::TRANSLATIONS,
                    AppendToResponse::VIDEOS,
                ])
            ]);
        }

        $data = $this->getApi()->getMovie($id, $this->parseQueryParameters($parameters), $headers);

        return $this->getFactory()->create($data);
    }
329491
public function getBusinessesSearchResults($parameters = [])
    {
        $csvParams = ['attributes', 'categories', 'price'];

        $path = $this->appendParametersToUrl('/v3/businesses/search', $parameters, $csvParams);
        $request = $this->getRequest('GET', $path, $this->getDefaultHeaders());

        return $this->processRequest($request);
    }
333977
public static function listAllStoreCreditsAsync(array $parameters = [])
    {
        return self::listAllStoreCreditsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }