當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SoapClient::sendsms方法代碼示例

本文整理匯總了PHP中SoapClient::sendsms方法的典型用法代碼示例。如果您正苦於以下問題:PHP SoapClient::sendsms方法的具體用法?PHP SoapClient::sendsms怎麽用?PHP SoapClient::sendsms使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在SoapClient的用法示例。


在下文中一共展示了SoapClient::sendsms方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: SendSMS

 public function SendSMS()
 {
     $client = new SoapClient($this->wsdl_link);
     $result = $client->sendsms($this->username, $this->password, $this->to, $this->from, $this->msg);
     if ($result) {
         $this->InsertToDB($this->from, $this->msg, $this->to);
         $this->Hook('wp_sms_send', $result);
     }
     return $result;
 }
開發者ID:jekv,項目名稱:devia,代碼行數:10,代碼來源:tablighsmsi.class.php

示例2: SendSMS

 public function SendSMS()
 {
     // Check credit for the gateway
     if (!$this->GetCredit()) {
         return;
     }
     $client = new SoapClient($this->wsdl_link);
     $result = $client->sendsms($this->username, $this->password, $this->to, $this->from, $this->msg);
     if ($result) {
         $this->InsertToDB($this->from, $this->msg, $this->to);
         $this->Hook('wp_sms_send', $result);
     }
     return $result;
 }
開發者ID:ajaycorbus,項目名稱:Plugins,代碼行數:14,代碼來源:tablighsmsi.class.php

示例3: SendSMS

 public function SendSMS()
 {
     // Check credit for the gateway
     if (!$this->GetCredit()) {
         return;
     }
     $client = new SoapClient($this->wsdl_link);
     $result = $client->sendsms(array('username' => $this->username, 'password' => $this->password, 'to' => implode(',', $this->to), 'text' => $this->msg, 'from' => $this->from, 'api' => $this->has_key));
     if ($result->sendsmsResult->long == 1000 or $result->sendsmsResult->long == 1001 or $result->sendsmsResult->long == 1002 or $result->sendsmsResult->long == 1003 or $result->sendsmsResult->long == 1004 or $result->sendsmsResult->long == 1005 or $result->sendsmsResult->long == 1006 or $result->sendsmsResult->long == 1007 or $result->sendsmsResult->long == 1008 or $result->sendsmsResult->long == 1009 or $result->sendsmsResult->long == 1010) {
         return false;
     }
     $this->InsertToDB($this->from, $this->msg, $this->to);
     $this->Hook('wp_sms_send', $result);
     return $result;
 }
開發者ID:ajaycorbus,項目名稱:Plugins,代碼行數:15,代碼來源:bestit.class.php

示例4: SendSMS

 public function SendSMS()
 {
     // Check credit for the gateway
     if (!$this->GetCredit()) {
         return;
     }
     /**
      * Modify sender number
      *
      * @since 3.4
      * @param string $this->from sender number.
      */
     $this->from = apply_filters('wp_sms_from', $this->from);
     /**
      * Modify Receiver number
      *
      * @since 3.4
      * @param array $this->to receiver number
      */
     $this->to = apply_filters('wp_sms_to', $this->to);
     /**
      * Modify text message
      *
      * @since 3.4
      * @param string $this->msg text message.
      */
     $this->msg = apply_filters('wp_sms_msg', $this->msg);
     $client = new SoapClient($this->wsdl_link);
     $result = $client->sendsms(array('username' => $this->username, 'password' => $this->password, 'to' => implode(',', $this->to), 'text' => $this->msg, 'from' => $this->from, 'api' => $this->has_key));
     if ($result->sendsmsResult->long == 1000 or $result->sendsmsResult->long == 1001 or $result->sendsmsResult->long == 1002 or $result->sendsmsResult->long == 1003 or $result->sendsmsResult->long == 1004 or $result->sendsmsResult->long == 1005 or $result->sendsmsResult->long == 1006 or $result->sendsmsResult->long == 1007 or $result->sendsmsResult->long == 1008 or $result->sendsmsResult->long == 1009 or $result->sendsmsResult->long == 1010) {
         return false;
     }
     $this->InsertToDB($this->from, $this->msg, $this->to);
     /**
      * Run hook after send sms.
      *
      * @since 2.4
      * @param string $result result output.
      */
     do_action('wp_sms_send', $result);
     return $result;
 }
開發者ID:veronalabs,項目名稱:wp-sms,代碼行數:42,代碼來源:bestit.class.php

示例5: SendSMS

 public function SendSMS()
 {
     // Check credit for the gateway
     if (!$this->GetCredit()) {
         return;
     }
     /**
      * Modify sender number
      *
      * @since 3.4
      * @param string $this->from sender number.
      */
     $this->from = apply_filters('wp_sms_from', $this->from);
     /**
      * Modify Receiver number
      *
      * @since 3.4
      * @param array $this->to receiver number
      */
     $this->to = apply_filters('wp_sms_to', $this->to);
     /**
      * Modify text message
      *
      * @since 3.4
      * @param string $this->msg text message.
      */
     $this->msg = apply_filters('wp_sms_msg', $this->msg);
     $client = new SoapClient($this->wsdl_link);
     $result = $client->sendsms($this->username, $this->password, $this->to, $this->from, $this->msg);
     if ($result) {
         $this->InsertToDB($this->from, $this->msg, $this->to);
         /**
          * Run hook after send sms.
          *
          * @since 2.4
          * @param string $result result output.
          */
         do_action('wp_sms_send', $result);
         return $result;
     }
 }
開發者ID:veronalabs,項目名稱:wp-sms,代碼行數:41,代碼來源:tablighsmsi.class.php


注:本文中的SoapClient::sendsms方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。