Menu
Welcome
Quick start guide
Installing on your site
Connecting as operator
Operator commands
API
Operator settings
Roster variables and macroses

Sitehelp API - getStatus

API :: getStatus


Function allows to get current status (presence) of client in contact list
SITEHELP_API.getStatus(
	{
		success:  // function will be called once status is successfully received, with status string as first parameter
		error: // function will be called on error, with error message as first parameter
	}
);


Example:

SITEHELP_API.onReady (ShowMeMyStatus);

function ShowMeMyStatus() {
	SITEHELP_API.getStatus(
		{
			success: function (reply_status) {
				alert("My status is : " + reply_status);
			},
			error: function (error_msg) {
				alert("GetStatus ERROR:" + error_msg);
			}
		}
	);
};
Copyright 2011-2014 by Sitehelp.im.