Topic: error 7
hello,
when i excute this request i get error 7 !!
https://hst-api.wialon.com/wialon/ajax.html?svc=report/get_report_data¶ms={"itemId":1184262270,"col":[10]}&sid=09af3e8959ca95865c00eb55629b01e3
thank you
hello,
when i excute this request i get error 7 !!
https://hst-api.wialon.com/wialon/ajax.html?svc=report/get_report_data¶ms={"itemId":1184262270,"col":[10]}&sid=09af3e8959ca95865c00eb55629b01e3
thank you
Hello!
there is no item (recourse) with such id
in this request you need to specify resource id (itemId) where report created.
You can execute request core/search_items to find resource by name and in JSON response you will get resource id
hello,
thnks for your response but i try to change the request and it display same error (error 7) .
you can see the attached file for more details
https://hst-api.wialon.com/wialon/ajax.html?svc=report/get_report_data¶ms={"itemId":17462927,"col":[10]}&sid=09729831df0f733857955f458e90f276
hello,
thnks for your response but i try to change the request and it display same error (error 7) .
you can see the attached file for more detailshttps://hst-api.wialon.com/wialon/ajax.html?svc=report/get_report_data¶ms={"itemId":17462927,"col":[10]}&sid=09729831df0f733857955f458e90f276
Hello!
this id doesn't belong to resource
Please specify request how you get itemID of required resource
this is my request to get ItemId :
https://hst-api.wialon.com/wialon/ajax.html?svc=core/search_items¶ms={"spec":{"itemsType":"avl_unit","propName":"sys_id","propValueMask":"*","sortType":""},"force":1,"flags":1,"from":0,"to":10000}&sid=091714cdc06ded272549e3a9181e04fb
you find the response in attached file
this is my request to get ItemId :
https://hst-api.wialon.com/wialon/ajax.html?svc=core/search_items¶ms={"spec":{"itemsType":"avl_unit","propName":"sys_id","propValueMask":"*","sortType":""},"force":1,"flags":1,"from":0,"to":10000}&sid=091714cdc06ded272549e3a9181e04fb
you find the response in attached file
Hello!
in this request with such data format you will find units by their item ID in system.
But you need to find element avl_resource ( "itemsType":"avl_resource" ) (search by name - "propName":"sys_name", in "propValueMask" - resource name ) to get resource id and use it in request for report executing.