Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:sidebar:remoteapi:apiref:user:update_locale [12/05/2015 08:37]
mast created
en:sidebar:remoteapi:apiref:user:update_locale [12/05/2015 10:38]
Line 1: Line 1:
-{{indexmenu_n>​8}} 
-====== Set user localization options ====== 
-To set date and time format and 1st week day options please use **user/​update_locale**:​ 
-<code javascript>​ 
-svc=user/​update_locale&​params={"​userId":<​long>,​ 
-                               "​locale":​ 
-                                         { 
-                                             "​fd":<​text>,​ 
-                                             "​wd":<​uint>​ 
-                                         } 
-} 
-</​code>​ 
  
-=====Parameters===== 
-^ Param ^ Description ​ ^ 
-| **userId** | user id | 
-| **fd** | date and time format \\ (see [[../​render/​set_locale|here]]) | 
-| **wd** | 1st week day:\\ 1 - Monday;\\ 7 - Sunday | 
- 
-=====Response===== 
-<code javascript>​ 
-{ 
-   "​locale": ​ 
-             { 
-                "​fd":<​text>, ​  /* date and time format */ 
-                "​wd":<​uint> ​   /* 1st week day: 1 - Monday, 7 - Sunday */ 
-             } 
-} 
-</​code>​ 
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam