Quatrix JavaSctipt APIs
Space shortcuts
Quatrix JavaSctipt APIs QJA
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

Parameters 

Name TypeDescription

data 

object

new metadata

cb

function

callback function


 

Example

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

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

 

 

  • No labels
Quatrix JavaSctipt APIs QJA