public static function upload($params = array()) { if (count($params)) { self::$imgur_apikey = Config::get('imgur::imgur.imgur_apikey'); // image required if (!array_key_exists('image', $params)) { return FALSE; } $params = array_merge(array('key' => self::$imgur_apikey), $params); if (self::run(__FUNCTION__, $params)) { return self::$response; } } return FALSE; }