Get the list of movies for a particular genre by id.
By default, only movies with 10 or more votes are included.

@param $id
@param  array   $parameters
@return Genre[]
@param  array   $headers
549819
public function getMovies($id, array $parameters = [], array $headers = [])
    {
        return $this->getMovieFactory()->createResultCollection($this->getApi()->getMovies($id, $parameters, $headers));
    }
414935
public function getVideoList($id)
    {

        $this->setId($id);

        $list = array();
        $data = $this->getData($this->baseChannelUrl);

        if(!$data) {
            throw new \Exception("Video channel not found");
        }

        foreach ($data as $value) {
            $list[$value->id] = array(
                'id'              => $value->id,
                'title'           => $value->title,
                'description'     => $value->description,
                'thumbnail_small' => $value->thumbnail_small,
                'thumbnail_large' => $value->thumbnail_large,
                'duration'        => $value->duration,
                'upload_date'     => $value->upload_date,
                'like_count'      => isset($value->stats_number_of_likes) ? $value->stats_number_of_likes : 0,
                'view_count'      => isset($value->stats_number_of_plays) ? $value->stats_number_of_plays : 0,
                'comment_count'   => isset($value->stats_number_of_comments) ? $value->stats_number_of_comments : 0
            );
        }
        return $list;
    }
1107467
public function chargeFutureRenewals(string $id, array $data, array $headers = [])
    {
        $url = $this->url('subscriptions/%s/charge_future_renewals', $id);

        return $this->post($url, $data, $headers);
    }
837847
public function AnimeRecommendations(int $id): array
    {
        return $this->myanimelist->getAnimeRecommendations(
            new Request\Anime\AnimeRecommendationsRequest($id)
        );
    }
36531
public function getCredits($tvshow_id, $season_number, array $parameters = [], array $headers = [])
    {
        return $this->get(sprintf('tv/%s/season/%s/credits', $tvshow_id, $season_number), $parameters, $headers);
    }
1277755
public function overrideBillingProfile(string $id, array $data, array $headers = [])
    {
        $url = $this->url('subscriptions/%s/override_billing_profile', $id);

        return $this->post($url, $data, $headers);
    }
1130142
public ResultList<UserList> getMovieLists(int movieId, Integer page, String language) throws MovieDbException {
        return tmdbMovies.getMovieLists(movieId, page, language);
    }
325534
public function changeBillingDate(string $id, array $data, array $headers = [])
    {
        $url = $this->url('customers/%s/change_billing_date', $id);

        return $this->post($url, $data, $headers);
    }
984515
public static function find($headers,$id=true)
    {
      $header = parent::find($headers, "Location");

      if ($id) {
        $match = array();
        $pieces = explode("/", $header);
        return str_replace("\r", "", str_replace("\n", "", $pieces[sizeof($pieces) - 1]));
      }

    return $header;
    }
1247866
public function getListByRequestIds($ids)
    {
        $parts = [];
        foreach ($ids as $id) {
            $parts[] = 'request.id:' . $id;
        }
        $qp = new QueryParams();
        $qp->query = join(' OR ', $parts);
        return $this->getList($qp);
    }
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);
    }
1113556
public function get($organizationId, array $parameters = [])
    {
        if (empty($organizationId)) {
            throw new ApiException("Organization ID is empty.");
        }

        return parent::rest_read($organizationId, $parameters);
    }
495344
public function list(array $parameters = [], array $headers = [])
    {
        $resolver = $this->createOptionsResolver();

        $resolver->setDefined('include_deleted')
            ->setAllowedTypes('include_deleted', 'boolean');

        $resolver->setDefined('sort_by')
            ->setAllowedTypes('sort_by', 'string');

        $url = $this->url('invoices');

        return $this->get($url, $resolver->resolve($parameters), $headers);
    }
1014236
public function find(array $parameters = [], array $headers = [])
    {
        $resolver = new OptionsResolver();

        $resolver->setDefined('subscription_id')
            ->setAllowedTypes('subscription_id', 'string')
            ->setRequired('subscription_id');

        $resolver->setDefined('label')
            ->setAllowedTypes('label', 'string')
            ->setRequired('label');

        $url = $this->url('addresses');

        return $this->get($url, $resolver->resolve($parameters), $headers);
    }
1291762
protected function getListRepresentation($id, $request)
    {
        $locale = $request->get('locale');

        /** @var RestHelperInterface $restHelper */
        $restHelper = $this->get('sulu_core.doctrine_rest_helper');

        /** @var DoctrineListBuilderFactory $factory */
        $factory = $this->get('sulu_core.doctrine_list_builder_factory');

        $listBuilder = $factory->create($this->container->getParameter('sulu_product.product_entity'));
        $fieldDescriptors = $this->getManager()->getFieldDescriptors($locale);
        $listBuilder->where($fieldDescriptors['product'], $id);

        $restHelper->initializeListBuilder(
            $listBuilder,
            $fieldDescriptors
        );

        $listResponse = $listBuilder->execute();
        $listResponse = $this->addThumbnails($listResponse, $locale);

        $list = new ListRepresentation(
            $listResponse,
            'media',
            'cget_product_media',
            array_merge(['id' => $id], $request->query->all()),
            $listBuilder->getCurrentPage(),
            $listBuilder->getLimit(),
            $listBuilder->count()
        );

        return $list;
    }
799385
public function load($id, array $parameters = [], array $headers = [])
    {
        if (empty($parameters)) {
            $parameters = [
                new AppendToResponse([
                    AppendToResponse::IMAGES,
                ])
            ];
        }

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

        return $this->getFactory()->create($data);
    }
1250626
public function addChargeAtTermEnd(string $id, array $data, array $headers = [])
    {
        $url = $this->url('subscriptions/%s/add_charge_at_term_end', $id);

        return $this->post($url, $data, $headers);
    }