2017 © Pedro Peláez
 

library php-client

Library for communicating with provider

image

smsapi.mwalczyk.pl/php-client

Library for communicating with provider

  • Monday, April 7, 2014
  • by mwalczyk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 25 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

php-client

Klient PHP pozwalający na wysyłanie wiadomości SMS, MMS, VMS oraz zarządzanie kontem w serwisie SMSAPI.pl, (*1)

<?php

require_once 'smsapi/Autoload.php';

$client = new \SMSApi\Client('login');
$client->setPasswordHash( md5('super tajne haslo') );

$smsapi = new \SMSApi\Api\SmsFactory();
$smsapi->setClient($client);

try {

    $actionSend = $smsapi->actionSend();

    $actionSend->setTo('600xxxxxx');
    $actionSend->setText('Hello World!!');
    $actionSend->setSender('SMSAPI.pl');

    $response = $actionSend->execute();

    foreach( $response->getList() as $status ) {
        echo  $status->getNumber() . ' ' . $status->getPoints() . ' ' . $status->getStatus();
    }
}
catch( \SMSApi\Exception\SmsapiException $e ) {
    echo 'ERROR: ' . $e->getMessage();
}

Wymagania

  • PHP >= 5.3
  • allow_url_fopen lub rozszerzenie curl

LICENSE

Apache 2.0 License, (*2)

The Versions

07/04 2014

dev-master

9999999-dev http://www.smsapi.pl

Library for communicating with provider

  Sources   Download

sms mms vms