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

Sitehelp API - getName

API :: getName


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


Example:

SITEHELP_API.onReady (ShowMeMyName);

function ShowMeMyName() {
	SITEHELP_API.getName(
		{
			success: function (reply_name) {
				alert("My name is : " + reply_name);
			},
			error: function (error_msg) {
				alert("GetName ERROR:" + error_msg);
			}
		}
	);
};
Copyright 2011-2014 by Sitehelp.im.