Skip to content

dcs-pl/hostedsms-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HostedSMS API

PHP API Client HostedSMS.pl SimpleAPI and WEBSERWIS2SMS API

HostedSMS.pl API documentation

Requirements

php >= 7.4
composer (https://getcomposer.org/)

Install package with dependencies

composer require dcs-pl/hostedsms-php

SimpleApi

Send SMS

require 'vendor/autoload.php';
use HostedSms\SimpleApi\HostedSmsSimpleApi;

$simpleApi = new HostedSmsSimpleApi($userEmail, $password);

$response = $simpleApi->sendSms($sender, $phone, $message);

WebService API

Create client

require 'vendor/autoload.php';
use HostedSms\WebService\HostedSmsWebService;

$client = new HostedSmsWebService($userEmail, $password);

Send SMS

$response = $client->sendSms($phone, $message, $sender, $transactionId);

Send multiple SMSes

$response = $client->sendSmses($phones, $message, $sender, $transactionId);

Get all valid senders for user

$response = $client->getValidSenders();

Get delivery reports

$response = $client->getDeliveryReports($messageIds);

Get unread delivery reports

$response = $client->getunreadDeliveryReports();

Get received smses

$response = $client->getInputSmses($from, $to, $recipient, $markAsRead);

Get unread received smses

$response = $client->getUnreadInputSmses();

Check if phone numbers are valid

$response = $client->checkPhones($phones);

Convert text to GSM7

$response = $client->convertToGSM7($text);

About

API dla usługi wysyłki SMS - HostedSMS.pl

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages