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.


@jsExample

CleengApi.getCustomer(function(result) {

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

});

@jsResponse

{
    country: "US"
    currency: "USD"
    displayName: "John Developer"
    firstName: "John"
    id: "123168578"
    lastName: "Developer"
    locale: "en_US"
}

@CategoryNAME:Customer API||URL:Customer_API


We use cookies to ensure that we provide you the best service and website experience. Read our Cookie policy for more details.