PHP code example of hoangstark / shufu-encoder-sdk
1. Go to this page and download the library: Download hoangstark/shufu-encoder-sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hoangstark / shufu-encoder-sdk example snippets
$shufuEncoder = new ShufuEncoderSdk;
$shufuEncoder->login('http://localhost:8080/api', 'shufu', 'secret');
$tasks = $shufuEncoder->getTasks();
$shufuEncoder = new ShufuEncoderSdk;
$shufuEncoder->login('http://localhost:8080/api', 'shufu', 'secret');
$tasks = $shufuEncoder->getEncodingTasks();
$shufuEncoder = new ShufuEncoderSdk;
$shufuEncoder->login('http://localhost:8080/api', 'shufu', 'secret');
$task = $shufuEncoder->getTask(1);
$shufuEncoder = new ShufuEncoderSdk;
$shufuEncoder->login('http://localhost:8080/api', 'shufu', 'secret');
$percentage = $shufuEncoder->getTaskProgress(1);