persons/{uid}/settings

This method returns settings or preferences of the logged user (“me”) or any other user. The latter requires appropriate access rights. The properties are:

  • The user interface language

  • The user interface “culture” or date/time format

  • The time zone

URL

(GET) /api/persons/{uid}/settings?includeOptions= (GET) /api/persons/me/settings?includeOptions=

PARAMETERS

The URL parameters are:

uid

Either pass a user ID or the shortcut “me” for the logged user.

To find users, see https://wordbee.atlassian.net/wiki/spaces/API2/pages/491572

int or “me”, Mandatory

includeOptions

Optional. Default is false if not specified.

  • true: The results include all available options for the UI language, culture and time zones. This is useful if you would like to then update the settings with new values.

bool, Optional

RESULTS

The result are a JSON object with these properties:

uid

The user ID. This is the user specified in the URL parameter.

int

uname

The user name.

string

language

The user interface language. This node includes code and print name. Example:

"language": { "v": "en", "t": "English (en)" }

object

culture

The date and time format. This node includes code and print name. Example:

"culture": { "v": "fr-FR", "t": "French (France) (fr-FR)" }

object

timezone

The time zone with detailed information.

Please see https://wordbee.atlassian.net/wiki/spaces/API2/pages/2091155468

object

 

 

 

languages

All possible UI languages. This node is included if parameter includeOptions is true.

A JSON array of options.:

 

object[]?

cultures

All possible date/time formats. This node is included if parameter includeOptions is true.

A JSON array of options.:

 

object[]?

timezones

All possible time zones. This node is included if parameter includeOptions is true.

A JSON array of time zones. See https://wordbee.atlassian.net/wiki/spaces/API2/pages/2091155468 for each time zone’s properties.

object[]?

 

EXAMPLES

A typical example for a user and when “includeOptions” is not set to true.

 

 

 

Copyright Wordbee - Buzzin' Outside the Box since 2008