1

Creat New Account

(05/09/2016 13:28:55 отредактировано mabed)

Тема: 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  ?

2

Creat New Account

Re: Creat New Account

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?

Head of Wialon Local Department
Gurtam
3

Creat New Account

Re: Creat New Account

thank you for helping me but i tried to add billing blan by use

svc=account/update_plan&params={itemId:8719,plan:"Wialon"}&sid=

but messege error show (error:4) please advice

4

Creat New Account

Re: Creat New Account

mabed, to activate resource as account use "account/create_account" request and pass id of resource and name of existent billing plan in it.

Head of Wialon Local Department
Gurtam
5

Creat New Account

Re: Creat New Account

Thank You

6

Creat New Account

Re: Creat New Account

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

7

Creat New Account

Re: Creat New Account

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");
Head of Wialon Local Department
Gurtam
8

Creat New Account

Re: Creat New Account

Thanks deal