Class smsAPI_SOAPClient

Description

Client smsAPI przez SOAP

Przyklad:

  1.  require_once 'smsapi.php';
  2.  spl_autoload_register(array('smsAPI','__autoload'));
  3.  
  4.  try {
  5.  
  6.      $smsapi new smsAPI_SOAPClient('login'md5('password') );
  7.  
  8.      $msg $smsapi->new_sms_multi();
  9.      $msg->recipient    array('xxxxxxxxx','yyyyyyyyy');
  10.      $msg->message    'test';
  11.      $msg->eco        TRUE;
  12.      $msg->flash        FALSE;
  13.      $result $msg->send();
  14.  
  15.      var_dump($result);
  16.  }
  17.  catch Exception $e )
  18.  {
  19.      echo $e->getMessage();
  20.  }

Located in /smsapi/soapclient.php (line 66)


	
			
Variable Summary
array $client
SoapClient $h_sopa
Method Summary
smsAPI_SOAPClient __construct ( $username,  $password, [bool $ssl = true])
smsAPI_SOAP_Response_AddGroup add_group (string $name, [string $info = ''])
smsAPI_SOAP_Response add_number (string $number, string $name, int $group_id)
smsAPI_SOAP_Response delete_number (string $number, int $group_id)
smsAPI_SOAP_SMS new_sms ([array $params = null])
smsAPI_SOAP_SMSMulti new_sms_multi ([array $params = null])
SoapClient __getSoapClient ()
mixed ___soapCall (string $function, [array $request = array()])
Variables
array $client (line 78)

Dane klienta

  • access: protected
SoapClient $h_sopa = null (line 71)
  • access: protected
Methods
Constructor __construct (line 85)

Inicializacjia

  • access: public
smsAPI_SOAPClient __construct ( $username,  $password, [bool $ssl = true])
  • bool $ssl: SOAP przez http lub https
  • $username
  • $password
add_group (line 243)

Dodawanie grupy do ksiazki telefonicznej

  • throws: SoapFault
  • access: public
smsAPI_SOAP_Response_AddGroup add_group (string $name, [string $info = ''])
  • string $name: Nazwa grupy
  • string $info: Opis grupy
add_number (line 301)

Dodaje numer do ksiazki telefonicznej

  • throws: SoapFault
  • access: public
smsAPI_SOAP_Response add_number (string $number, string $name, int $group_id)
  • string $number: Nazwa grupy
  • string $name: Nazwa w ksiazce telefonicznej
  • int $group_id: Numer grupy uzytkownik'ow w ksiazce telefonicznej
delete_group (line 278)

Usuwa grupe z ksiazki telefonicznej

  • throws: SoapFault
  • access: public
smsAPI_SOAP_Response delete_group (int $group_id)
  • int $group_id: ID grupy w ksiazce telefonicznej
delete_number (line 352)

Usuwanie numeru z ksiazki telefonicznej

  • throws: SoapFault
  • access: public
smsAPI_SOAP_Response delete_number (string $number, int $group_id)
  • string $number: Numer telefonu
  • int $group_id: ID grupy w ksiazce telefonicznej
delete_sms_by_id (line 219)

Usuwanie wiadomosci zaplanowanych

  • throws: SoapFault
  • access: public
smsAPI_SOAP_Response delete_sms_by_id (string $id)
  • string $id
get_groups (line 264)

Pobiera grupy z ksiazki telefonicznej uzytkownika

  • throws: SoapFault
  • access: public
get_numbers (line 328)

Pobieranie numer'ow z ksiazki telefonicznej uzytkownika

  • throws: SoapFault
  • access: public
smsAPI_SOAP_Response_GetNumbers get_numbers (int $group_id)
  • int $group_id: ID grupy w ksiazce telefonicznej
get_points (line 375)

Sprawdzanie ilosci punktow na koncie.

  • throws: SoapFault
  • access: public
get_senders (line 388)

Pobieranie dostepnych pol nadawcy

  • throws: SoapFault
  • access: public
get_sms_by_date (line 198)

Sprawdzanie raportow doreczenia wiadomosci wyslanych w okreslonym przedziale czasowym

  • throws: SoapFault
  • access: public
smsAPI_SOAP_Response_SMSStatus get_sms_by_date (int $from, int $until)
  • int $from
  • int $until
get_sms_by_ids (line 173)

Sprawdzanie raportow doreczenia wiadomosci po wskazaniu ich ID

  • throws: SoapFault
  • access: public
smsAPI_SOAP_Response_SMSStatus get_sms_by_ids (array $ids)
  • array $ids
new_sms (line 129)
  • access: public
smsAPI_SOAP_SMS new_sms ([array $params = null])
  • array $params
new_sms_multi (line 161)
  • access: public
smsAPI_SOAP_SMSMulti new_sms_multi ([array $params = null])
  • array $params
send_sms (line 109)

Wysylanie pojedynczej wiadomosci

  • throws: SoapFault
  • access: public
send_sms_multi (line 141)

Wysylanie wiadomosci masowych

  • throws: SoapFault
  • access: public
__getSoapClient (line 419)

Pobierz uchwyt do SoapClient

  • access: public
SoapClient __getSoapClient ()
___soapCall (line 403)

Wywolanie funkcji SOAP

  • throws: SoapFault
  • access: protected
mixed ___soapCall (string $function, [array $request = array()])
  • string $function
  • array $request

Documentation generated on Thu, 27 Jan 2011 16:17:36 +0100 by phpDocumentor 1.4.3