当前位置: 首页>>代码示例>>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;未经允许,请勿转载。