Quatrix JavaSctipt APIs
Space shortcuts
Quatrix JavaSctipt APIs QJA

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Changes personal profile data. Check "data" example below.

Parameters 

 

Name TypeDescription

data

required

object

new metadata

cb

optional

function

callback function


 

Example

Code Block
languagejs
this.updateAccountProfile = function (data, cb) {
  if(data.password)
  data.password = _cryptString(data.password);
  return _request( {
    method: 'POST',
    url: '/profile/set',
    data: data,
    callback: cb
  });
};

 

 

Example Result

Code Block
languagejs
{
 email: "john@smith.net",
 language: "",
 password: "B1dVCwcU", // crypted password
 realname: "john"
}

 

 

Quatrix JavaSctipt APIs QJA