Тема: Creat New Account
Hi
we want to create new account using SDK but document doesn't mentioned the parameters "account name","create as"
Would you please explain how we should create account and where we should set Account Name ?
Вы не вошли. Пожалуйста, войдите или зарегистрируйтесь.
Hi
we want to create new account using SDK but document doesn't mentioned the parameters "account name","create as"
Would you please explain how we should create account and where we should set Account Name ?
mabed, do You want to cerate just new user or new separate subaccount including it's own billing?
In case 2 this can be made in several consecutive steps:
1. Create new user.
1.1. (Optionally) set user's measure units (metric by default).
1.2. (Optionally) set custom or copy user's locale (date and time format) from current user.
1.3. (Recommended) set user's flags to allow items creation.
2. Create new resource under this user (with creator_id set to id of user from step 1).
3. Activate this resource as account (add billing plan).
For further details specify do You use SDK JS or REMOTE API?
thank you for helping me but i tried to add billing blan by use
svc=account/update_plan¶ms={itemId:8719,plan:"Wialon"}&sid=
but messege error show (error:4) please advice
mabed, to activate resource as account use "account/create_account" request and pass id of resource and name of existent billing plan in it.
I have created one user using remote api. Now I want to update the email Id for that created user..how to achieve this.
thanks in advance
sam, user's email is stored in special custom property "email".
You can change it using such request using remote api:
https://sdk.wialon.com/wiki/en/sidebar/ … m_property
or using JS SDK:
var userId = 7777;
var user = wialon.core.Session.getInstance().getItem(userId);
if (user)
user.updateCustomProperty("email", "new@email.com");