Topic: Adding wialon apps in KIT
While logged in as top level user I query for available service and I get
svc : core/get_account_data
This produces:
{
"plan": "Wialon Kit",
"enabled": 1,
"switchTime": 0,
"flags": 18,
"created": 1385571094,
"balance": "0.00",
"daysCounter": 0,
"services": {
...
"email_report": {
"type": 1,
"usage": 3,
"maxUsage": 600
},
"app.1452509616_65219": {
"type": 1,
"usage": 0,
"maxUsage": -1
},
...
},
"dealerRights": 1,
"subPlans": [
"Wialon Kit"
]
}
Now I want to give access to this app to user
So I send the following api request:
note: the user itemId = 11761996 and resource itemId is 11761997
svc='account/update_billing_plan'
params =
{ 'itemId':11761997,
'callMode':'update',
personal:{
"services":
{'app.1452509616_65219':{
"type": 2,
"maxUsage": 0,
"cost": [],
"interval": 0,
"descr": 'Sensor Console',
"flags": 0
}
}
}
}
I get error 4 (invalid input)
Pleae help
Implementation Specialist, Middle East, Gurtam
"Computer science is no more about computers than astronomy is about telescopes."