示例#1
0
 public function get($url, $default = false)
 {
     if ($this->has($url)) {
         $extracted = json_deocde(file_get_contents($this->_cache_filename($url)));
         return new Essence\Media($extracted);
         die(print_r($extracted));
     }
     return $default;
 }
 /**
  * Get a list of all locations supported by SuperCell's Clan-System
  *
  * @return array, all locations.
  */
 public function getLocationList()
 {
     $json = $this->sendRequest("https://api.clashofclans.com/v1/locations");
     return json_deocde($json);
 }