PHP code example of lamoni / junos-space

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

    

lamoni / junos-space example snippets


$space = new JunosSpace("192.168.0.100", "username", "password123!");

print_r($space->getDevices());

$space = new JunosSpace("192.168.0.100", "username", "password123!");

print_r($space->get('/api/space/device-management/devices'));