PHP code example of teo2peer / utopia-api

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

    

teo2peer / utopia-api example snippets



// downloaded
se Teo2Peer\Uapi;


$api = new api("URL", "TOKEN");

$result = $api->call()-getSystemInfo();

$api->call()->sendChannelMessage("channelId", "message");