Documentation

User

User API

Methods

getTimeZone(callback)

get current timezone - if user is logged in then this will retrieve user's timezone the default (application/server) timezone will be used for unauthorized user

Parameters:
NameTypeDescription
callbackfunction

function (user) {...}

Example
AP.getTimeZone(function(timezone){ alert(timezone); });

getUser(callback)

get a user object containing the user's id and full name

Parameters:
NameTypeDescription
callbackfunction

function (user) {...}

Example
AP.getUser(function(user){ alert("id: " + user.id + "\nkey: " + user.key); });