public function __construct($username, $password, $sender = NULL, $settings = NULL, $_default) { parent::__construct($username, $password); $this->sender = $sender; $this->settings = $settings; $this->_default = $_default; }
public function __construct($username, $password) { parent::__construct($username, $password); $this->username = $username; $client = $this->getSmsapiClient(); $smsApi = new SMSApi\Api\UserFactory(null, $client); $action = $smsApi->actionGetPoints(); $action->setDetails(1); try { $this->points = $action->execute(); } catch (SMSApi\Exception\SmsapiException $e) { $this->points = null; $this->error = $e->getMessage(); } }