Download the PHP package motveu/php-api-sdk without Composer
On this page you can find all versions of the php package motveu/php-api-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download motveu/php-api-sdk
More information about motveu/php-api-sdk
Files in motveu/php-api-sdk
Package php-api-sdk
Short Description PHP SDK for integration with JACON SMS and moTV.eu middleware
License
Homepage https://motv.eu
Informations about the package php-api-sdk
moTV.eu / JACON PHP SDK
This SDK can be used to integrate with moTV.eu (https://motv.eu) and JACON CSMS (https://jacon.cz).
Installation
The recommended way to install is via Composer:
Usage
Usage is very easy. Just include the composer's autoloader and start using it.
Sample SMS commands
For full API documentation and test API endpoint please get in touch with JACON (or moTV.eu in case it was bundled with moTV.eu middleware).
Sample Middleware commands
For full API documentation and test API endpoint please get in touch with moTV.eu.
Works with entities, update, getData and selection
moTV VOD files upload
Files bigger than 20MB cannot be uploaded via the GUI nor via the API directly as there is limitation on the file size in place. It needs to be uploaded by chunks. We have prepared a sample script VodUpload.php
. Please note that the script utilizes shell tool split
to split the original file into chunks and therefore this will not work on Windows OS.
Catching errors
There might be exceptions thrown in case of unexpected issues, for example that the customer does not exists. There is also UnknownApiException
thrown in case when something unpredictable happened. And standard Guzzle (https://github.com/guzzle/guzzle) exceptions are thrown when issue with connection happens.
Logging
This SDK is shipped with Monolog (https://github.com/Seldaek/monolog) support. You can pass logger to the $connector->setLogger()
method and all API communication will be logged
Pro TIP
Use modern IDE such as PHP Storm. It will give you hints what are the method names as well as what are the parameter names and their types.
All versions of php-api-sdk with dependencies
guzzlehttp/guzzle Version ^7.0
monolog/monolog Version ^3.0
phpdocumentor/reflection-docblock Version ^5.1