public static function searchMovieByImdbId($imdbId) { $url = 'http://api.douban.com/v2/movie/search'; $params = array('q' => $imdbId); $response = CURL::get($url, $params); return $response; }
private static function search($title, $year) { $title = OmdbService::removeYearFromTitle($title); $params = array('plot' => 'short', 'r' => 'json', 'y' => $year, 't' => $title); $response = CURL::get(self::$URL, $params); return json_decode($response, true); }
private static function searchMovieByTitle($title) { $searchMovieUrl = self::$apiUrl . 'search/movie'; $params = array('query' => urlencode($title), 'api_key' => self::$apiKey); return CURL::get($searchMovieUrl, $params); }