src/Provider/Ssl.php
/**
     * Send Request To Api and Send Message
     */
Send Request To Api and Send Message
Send Request To Api and Send Message
public function sendRequest()
    {
        $mobile = $this->senderObject->getMobile();
        $text = $this->senderObject->getMessage();
        $config = $this->senderObject->getConfig();
        $query = [
            'api_token' => $config['api_token'],
            'sid' => $config['sid'],
            'csms_id' => $config['csms_id'],
            'msisdn' => $mobile,
            'sms' => $text,
        ];
        $response = Request::get('https://smsplus.sslwireless.com/api/v3/send-sms', $query, false);
        $body = $response->getBody();
        $smsResult = $body->getContents();
        $data['number'] = $mobile;
        $data['message'] = $text;
        return $this->generateReport($smsResult, $data);
    }
public function sendRequest ( ) { $ mobile = $ this -> senderObject -> getMobile ( ) ; $ text = $ this -> senderObject -> getMessage ( ) ; $ config = $ this -> senderObject -> getConfig ( ) ; $ query = [ 'api_token' => $ config [ 'api_token' ] , 'sid' => $ config [ 'sid' ] , 'csms_id' => $ config [ 'csms_id' ] , 'msisdn' => $ mobile , 'sms' => $ text , ] ; $ response = Request :: get ( 'https://smsplus.sslwireless.com/api/v3/send-sms' , $ query , false ) ; $ body = $ response -> getBody ( ) ; $ smsResult = $ body -> getContents ( ) ; $ data [ 'number' ] = $ mobile ; $ data [ 'message' ] = $ text ; return $ this -> generateReport ( $ smsResult , $ data ) ; }
Send Request To Api and Send Message
Send Request To Api and Send Message