I'm currently using the API to check for online / offline status.
Using the following script
<script>
var lpServerName = 'server.iad.liveperson.net';
//var lpChannel = CHANNEL; // Optional. Default is chat. (Options are chat|voice)
//var lpSkill = SKILLNAME; //Optional.
// var lpOperator = OPERATORNAME //Optional.
/*
DEFINED REP STATES :
LPREPSTATEONLINE = "online" : Reps available online
LPREPSTATEOFFLINE = "offline" : No available reps online - offline or away
LPREPSTATEOCCUPIED = "occupied" : Rep in "back in 5" state
LPREPSTATEUNKNOWN = "unknown" : Unable to contact server
*/
function repStateNotifyFunction(state) {
if (state == "online") {
$("#imgLivePersonChat")[0].src = "/images/Tscom/ui/contact-global/reponline.gif";
} else if (state == "offline") {
$("#imgLivePersonChat")[0].src = "/images/Tscom/ui/contact-global/repoffline.gif";
} else {
$("#imgLivePersonChat")[0].src = "/images/Tscom/ui/contact-global/repoffline.gif";
}
}
</script>
<script src="https://server.iad.liveperson.net/hcp/html/lpCheckRepState.js"></script>
Using my test account I receive a status of unknown. Using my live account, I get the proper status online.
Is there a different server to use for test accounts instead of https://server.iad.liveperson.net/hcp/html/lpCheckRepState.js