Skip to content

setUsername

Sahri Riza Umami edited this page Jun 23, 2018 · 1 revision

Changes the username of the current user.
If something changes, updateUser will be sent.

setUsername(username, callback, data)
Field Type Description
username string The new value of the username. Use an empty string to remove the username.

Example

  • Set username of the current user to "testusername".

    setUsername('testusername')

    Response:

    {
      ["@type"] = "ok"
    }
  • Remove username of the current user.

    setUsername('')

    Response:

    {
      ["@type"] = "ok"
    }

Frequently Asked Questions
The Functions

Clone this wiki locally