PHP code example of techshark / laritio

1. Go to this page and download the library: Download techshark/laritio 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/ */

    

techshark / laritio example snippets


$laritioSDKFileRequest = new LaritioSDKFileRequest(
    '/images/example.png', 
    ['title' => 'example title']
);

$laritioSDK->uploadFile($laritioSDKFileRequest);

$laritioSDKWatermarkRequest = new LaritioSDKWatermarkRequest(
    '/images/example.png',
    [
        'name' => 'mytestwm', 
        'position' => 'bottom-right', 
        'padding' => '20'
    ]
);

$laritioSDK->uploadFile($laritioSDKWatermarkRequest);

$laritioSDKRequest = new LaritioSDKRequest(
    '/players/adtags/list'
);

$laritioSDK->call($laritioSDKRequest);