https://<IP ADDRESS>/api/trafficshaper/settings/toggleRule/https://<IP ADDRESS>/api/trafficshaper/settings/getRule/https://<IP ADDRESS>/api/trafficshaper/service/flushreload
$ch = curl_init( $webhookurl );curl_setopt( $ch, CURLOPT_POST, $isPOST);curl_setopt( $ch, CURLOPT_POSTFIELDS, $DATA);curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1);curl_setopt( $ch, CURLOPT_HEADER, 0);curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt( $ch, CURLOPT_USERPWD, "$UserK:$PassK");curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, false);curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false);
CurlFn(<toggleRule API END POINT FROM ABOVE><ID OF RULE>,<0 or 1>); usleep(5000);CurlFn(<flushreload API END POINT>,"");usleep(1000);{redirects here to calling page}
/ui/trafficshaper/*/api/trafficshaper/*