PHP code example of upscale / cisco-meraki-client

1. Go to this page and download the library: Download upscale/cisco-meraki-client 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/ */

    

upscale / cisco-meraki-client example snippets


$meraki = new \Upscale\Cisco\Meraki\ApiClient(
    new \GuzzleHttp\Client(),
    '0011223344556677889900aaabbbcccdddeeefff'
);

$organizationId = 123456;
$networks = $meraki->fetchNetworks($organizationId);

$networkId = $networks[0]['id'];
$devices = $meraki->fetchDevices($networkId);

$deviceId = $devices[0]['serial'];
$clients = $meraki->fetchClients($deviceId);

$organizations = $meraki->callApi('organizations', 'GET');