Plugin Directory

Changeset 2986620


Ignore:
Timestamp:
10/31/2023 08:32:17 AM (2 years ago)
Author:
grilabs
Message:

Asist Provider updated

Location:
wp-sms-functions/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-sms-functions/trunk/inc/providers/Asist_Provider.php

    r2985968 r2986620  
    2424            return $prov;
    2525        });
    26         try {
    27             $this->soapClient = new SoapCustom($this->wsdl_url);
    28         } catch (\Exception $exception) {
    29 
    30         }
    31 
    3226        add_action('Smsfunctions_provider_settings', array($this, 'settings'));
    3327        add_filter('Smsfunctions_fields', function ($fields) {
    3428            return array_merge($fields, $this->fields());
    3529        });
     30    }
     31
     32    private function initSoap()
     33    {
     34        try {
     35            $this->soapClient = new SoapCustom($this->wsdl_url);
     36        } catch (\Exception $exception) {
     37
     38        }
    3639    }
    3740
     
    195198    public function getOriginator(): array
    196199    {
     200        $this->initSoap();
    197201        $originators = $this->soapClient->getOriginator([
    198202            'requestXml' => $this->getMainXmlBody('GetOriginator')
     
    215219    public function getCredit()
    216220    {
     221        $this->initSoap();
    217222        $credit = $this->soapClient->getCredit([
    218223            'requestXml' => $this->getMainXmlBody('GetCredit')
     
    246251            ]
    247252        ]);
     253        $this->initSoap();
    248254        $response = $this->soapClient->sendSms([
    249255            'requestXml' => $xmlRequest
  • wp-sms-functions/trunk/wp-sms-functions.php

    r2985968 r2986620  
    66 * Author URI: https://www.gri.net
    77 * Text Domain: wp-sms-functions
    8  * Version: 1.2.7
     8 * Version: 1.2.8
    99 * Domain Path: /lang
    1010 * Requires at least: 4.9
Note: See TracChangeset for help on using the changeset viewer.