Skip to content

setName

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

Changes the first and last name of the current user.
If something changes, updateUser will be sent.

changeName(first_name, last_name)

If something changes, updateUser will be sent.

Field Type Description
first_name string The new value of the first name for the user; 1-255 characters.
last_name string The new value of the optional last name for the user; 0-255 characters

Example

  • Change currently logged in users first name to "Maman" and last name to "Suparman".

    changeName('Maman', 'Suparman')

    Response:

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

Frequently Asked Questions
The Functions

Clone this wiki locally