Example #1
0
 /**
  * Make a request to tmdb api with provided url(s).
  * 
  * @param  array/string $url
  * @return string
  */
 protected function call($url)
 {
     if (!$this->key) {
         throw new Exception('Please enter your api key in dashboard before using tmdb as data provider.');
     }
     if (is_array($url)) {
         return $this->scraper->multiCurl($url);
     }
     return $this->scraper->curl($url);
 }