Service class for managing customer features related operations.

Hierarchy

  • ApiService
    • FeaturesService

Methods

  • Retrieves a list of profile features based on the provided parameters.

    Parameters

    Returns Promise<CustomerFeatureList>

    A Promise that resolves to the retrieved list of profile features.

    Throws

    if the HTTP request fails.

    Example

    featuresService.get({ limit: 10, offset: 1 })
    .then((response) => {
    console.log(response);
    })
    .catch((error) => {
    console.error('Error retrieving profile features.');
    });
  • Retrieves the singleton instance of the FeaturesService class.

    Returns FeaturesService

    The singleton instance of the FeaturesService class.

    Function

    Static

    Example

    // Usage:
    const featuresService = FeaturesService.getInstance();