PHP code example of nextdeveloper / publitio

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

    

nextdeveloper / publitio example snippets




$publitio = new \Publitio\API('<API Key>', '<API Secret>');

$response = $publitio->call($call_url, $method, $args);

$publitio->uploadFile(fopen('path/to/file.png', 'r'));

$publitio = new \Publitio\API('<API Key>', '<API secret>');
$response = $publitio->call('/files/list', 'GET', array('offset' => '0', 'limit' => '10'));
var_dump($response);
bash
curl -sS https://getcomposer.org/installer | php
bash
php composer.phar