Browse Source

Simple example with ->equal method usage added

pull/40/head
Paul Rock 6 years ago
parent
commit
0025b5115b
  1. 14
      examples/remove_security_profile.php

14
examples/remove_security_profile.php

@ -0,0 +1,14 @@
<?php
require_once __DIR__ . '/../vendor/autoload.php';
error_reporting(E_ALL);
// Create query which should remove security profile
$query = new \RouterOS\Query('/interface/wireless/security-profiles/remove');
// Here, instead of `->where()` need to use `->equal()`, it will generate queries,
// which stared from "=" symbol:
$query->where('.id', '*1');
$client = new \RouterOS\Client(['host' => '192.168.88.1', 'user' => 'admin', 'pass' => 'password']);
$response = $client->query($query)->read();
Loading…
Cancel
Save