public function __construct($config = []) { if (!empty($config)) { $this->configure($config); } parent::__construct($this->AppKey, $this->AppSecret, $this->Format); $this->init(); }