Topic: Help with one issue
HI, i,m new in the gurtam community and i like to get some help whit one Issue.
i'm working with notifications detailed information in gurtam sdk remote API, i'm using PHP for gurtam, from the github Wialon Remote API PHP library(https://github.com/wialon/php-wialon).
as you see in the gurtam sdk documentation (https://sdk.wialon.com/wiki/en/local/remoteapi1704/apiref/resource/get_notification_data#alarm_button_trigger
), the command requires two parameter which are "itemId" (resource ID) and "col"(array of notifications IDs).
in the php code the JSON array is encoded in this way: {"itemId":119179,"col":[11]} according to the previous parameters, but when i send them the server returns to me error:7 which according to the gurtam api documentations means Access denied, but apparently i got all the access rights to the notifications.
the following PHP code is what i use to send the request to the server.
$NotificationParams=array("itemId"=>119179,
"col"=>array(11)); //PHP array of parameters
echo "JSON ENCONDE: ".json_encode($NotificationParams)."<br>"; //to print the JSON array, encoding php array to json in order to send them in the following request
echo "ARREGLO JSON NOTIFICACIONES: ".$wialon_api-> resource_get_notification_data(json_encode($NotificationParams))."<br>"; //to print the JSON response of the server(which returns error 7)
i like to know if i'm doing something wrong in the request or if it's just that i'm still do not have enough rights to the notifications.
THANKS!