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

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

Parameters 

 

Name TypeDescription

data

required

object

new metadata

cb

optional

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

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.
Quatrix JavaSctipt APIs QJA