1

Permissions issue for interacting with Resources

Тема: Permissions issue for interacting with Resources

Hi all,

I'm trying to use the API to create orders and also request information on orders, however I'm getting a bit stuck with the access permissions on the token.

I've tried setting the access_type to 2304 (256 + 2084) which should allow for both viewing of orders and creation of orders, however when I then call the below endpoint, I don't get any order details:

GET /wialon/ajax.html?svc=core/search_items&params={"spec":{"itemsType":"avl_resource","propName":"sys_name","propValueMask":"*","sortType":"sys_name","propType":"propitemname"},"force":1,"flags":524289,"from":0,"to":0}&sid=068023ccd182fdbeafbe4181ef3773c7 HTTP/1.1
Host: hst-api.wialon.com
Content-Type: application/x-www-form-urlencoded

However, if I then regenerate a token with the access_type of -1, and re-run the call it does shows the order details.

Ideally I wouldnt want to use a token that has full access to the resource, so please can someone advise which access_type will allow the creation and viewing of orders?

Thank you.

2

Permissions issue for interacting with Resources

Re: Permissions issue for interacting with Resources

dear Taggsie
please check your email

Labs Expert
Gurtam