コード例 #1
0
ファイル: IncomingSMS.php プロジェクト: impeto/wire2air-php
 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'];
 }
コード例 #2
0
ファイル: AirtelSMS.php プロジェクト: kaalpurush/sms
 function __construct($api_key, $api_secret)
 {
     parent::__construct();
     $this->api_key = $api_key;
     $this->api_secret = $api_secret;
 }