Variables

Grabs user variables, app variables & sets user variables.

Get App Var

App.Login("username", "Password123/").then(loginResponse => {
if(loginResponse.error == false){
‚Äč
App.GetAppVars().then(appVars => {
if(appVars.error == false){
console.log(appVars.vars);
} else {
console.log(appVars.message);
}
})
} else {
console.log(loginResponse.message);
}
})

Set User Var

App.Login("username", "Password123/").then(loginResponse => {
if(loginResponse.error == false){
App.GetAppVars().then(appVars => {
if(appVars.error == false){
App.SetUserVars("varName", "varValue").then(userVarResponse => {
console.log(userVarResponse);
})
}else{
console.log(appVars.message);
}
})
} else {
console.log(loginResponse.message);
}
})

Get User Var

App.Login("username", "Password123/").then(loginResponse => {
if(loginResponse.error == false){
App.MyVars().then(userVarResponse => {
console.log(userVarResponse);
})
} else {
console.log(loginResponse.message);
}
})