getCustomer()


Usage

CleengApi.getCustomer(callback);

Helper function that can be used to improve user experiece for authenticated customers. When call is successful (ie. user is logged in to Cleeng Platform), you will receive useful information about the customer.

Parameters:

This method has no parameters

Example:

CleengApi.getCustomer(function(result) {

        if (result) {
            alert("Welcome " + result.displayName + " !");
        }

    });
   

Back to Customer API