Flist lists-o-rama A list discovery service

Flist is a list discovery service, accessible via a programming api, to provide lists on a range of subjects for use in your applications. Movies, Music, TV, Cars, Sports. If its in a list, you can find it here. Contact us for a flist api key.


Movie List

Our movie api returns a selection of popular movie lists such as imdb popular, top 250, rolling stones, rotten tomatoes.

 		
http://flist.spotnab.com/api/public/v1.0/lists/movies.json?apikey=<YOUR_API_KEY>
	


Example Code

The following code is a PHP example for calling the api.

class Flist {
	const API_URL = "http://flist.spotnab.com/api/public/v1.0/";
	private $_apikey;
	
	public function __construct($apikey) {
		$this->setApikey($apikey);
	}

	public function getMovies() {
		return $this->_makeCall('lists/movies.json');
	}
	
	private function _makeCall($function, $param = "") {
		$params = '';

		if(is_array($param) AND ! empty($param))
			$params .= '&'.http_build_query($param);

		$url = Flist::API_URL.$function."?apikey=".$this->getApikey().$params;
 	       return (string) getUrl($url, 'get', '', 'gzip');
	}

	public function setApikey($apikey) {
		$this->_apikey = (string) $apikey;
	}

	public function getApikey() {
		return $this->_apikey;
	}
}