getPath(self::PATH,'SendSMS'); $data = [ 'UserName' => $this->username, 'PassWord' => $this->password, 'To' => $to, 'From' => $from, 'Text' => $text, 'IsFlash' => $isFlash ]; return $this->execute($url,$data); } public function sendByBaseNumber($text,$to,$bodyId) { $url = $this->getPath(self::PATH,'BaseServiceNumber'); $data = [ 'UserName' => $this->username, 'PassWord' => $this->password, 'text' => $text, 'to' => $to, 'bodyId' => $bodyId ]; return $this->execute($url,$data); } public function isDelivered($id) { $url = $this->getPath(self::PATH,'GetDeliveries2'); $data = [ 'UserName' => $this->username, 'PassWord' => $this->password, 'recId' => $id ]; return $this->execute($url,$data); } public function getMessages($location,$index,$count,$from='') { $url = $this->getPath(self::PATH,'GetMessages'); $options = [ 'UserName'=> $this->username, 'PassWord'=> $this->password, 'location'=> $location, 'index'=> $index, 'count' => $count, 'from' => $from ]; return $this->execute($url,$options); } public function getCredit() { $url = $this->getPath(self::PATH,'GetCredit'); $data=[ 'UserName' => $this->username, 'PassWord' => $this->password ]; return $this->execute($url,$data); } public function getBasePrice() { $url = $this->getPath(self::PATH,'GetBasePrice'); $data=[ 'UserName' => $this->username, 'PassWord' => $this->password ]; return $this->execute($url,$data); } public function getNumbers() { $url = $this->getPath(self::PATH,'GetUserNumbers'); $data=[ 'UserName' => $this->username, 'PassWord' => $this->password ]; return $this->execute($url,$data); } }