Product Catalog

Pre-requisite

  • The user has to be signed in to perform the following operations.

Get Products

To retrieve product plans by country and product IDs, use the following method:

Deprecated
This method is deprecated. Use the new getProducts method with skuCategories for more flexible product retrieval.

  • country (required): The ISO country code (e.g., “US”, “IN”) for which products should be fetched.
  • productIds (required): Comma-separated product IDs to filter the results.
InstaVision.subscriptionService.getProducts(
  country = "IN",
  productIds = "product_basic, product_pro",
  onSuccess = { plans ->
    // Handle the list of available plans (List)
  },
  onError = { error ->
    // The error object contains the error code and message
  }
)

Get Products

To retrieve product plans by country, product IDs and sku categories use the following method:

  • country (required): The ISO country code (e.g., “US”, “IN”) for which products should be fetched.
  • productIds (required): Comma-separated product IDs to filter the results.
  • skuCategories (required): Comma-separated category of products to fetch (e.g., “AI”, “Combo”, “Data”).
 InstaVision.subscriptionService.getProducts(
    country = "IN",
    productIds = "product_basic, product_pro",
    skuCategories = "sky category",
    onSuccess = { plans ->
     // Handle the list of available plans (List)
    },
    onError = { error ->
     // The error object contains the error code and message
    }
  )

This site uses Just the Docs, a documentation theme for Jekyll.