1

Help with the "update_data_flags" API call

Тема: Help with the "update_data_flags" API call

I'm reading through the documentation part of "Item events management" to get the events from a unit using it's ID, i try it just like this:
"https://hst-api.wialon.com/wialon/ajax. … p;params={"spec:[{"type":"id","data":*UNIT_ID_HERE*,"flags":4611686018427387903,"mode":0}]}&sid=MY_SID"
I try this and it gives me a response, i havent identify what all the data means yet, but right now my question is this one: This API when i try it on my browser it works fine, but when i try to use this API call using php nothing happends not even an error message, as an example this is the line of code where i put the request: 
$CALL = $wialon_api->update_data_flags('{"spec":[{"type":"id","data":UNIT_ID_HERE,"flags":4611686018427387903,"mode":0}]}');
this is where i suspect the problem is but as far as i know theres nothing wrong with this.
sorry if its a very technical question but im just very confused unless im doing something wrong.

Thank you, any help is very appreciated

2

Help with the "update_data_flags" API call

Re: Help with the "update_data_flags" API call

jornadadgps22 hello,
Unfortunately, I'm not familiar with PHP, however, the request itself looks incomplete.

Please, try to set as follows: core_update_data_flags (with core in front)

Anton Zinovyev
Technical Care Engineer (L2)
Wialon
3

Help with the "update_data_flags" API call

Re: Help with the "update_data_flags" API call

zant пишет:

jornadadgps22 hello,
Unfortunately, I'm not familiar with PHP, however, the request itself looks incomplete.

Please, try to set as follows: core_update_data_flags (with core in front)


Hello, you're right it was incomplete, just changed that and it worked
thank you!