Example #1
0
 public function __construct(array $data)
 {
     parent::__construct([]);
     $this->from = $data['mobilenumber'];
     $body = explode(' ', $data['message'], 2);
     $this->keyword = strtoupper(trim($body[0]));
     $this->sent_at = $data['Rcvd'];
     $this->to = $data['SHORTCODE'];
     $this->text = $data['message'];
     $this->session = $data['SESSIONID'];
 }
Example #2
0
 function __construct($api_key, $api_secret)
 {
     parent::__construct();
     $this->api_key = $api_key;
     $this->api_secret = $api_secret;
 }