getUserInfoWithConsent

fun getUserInfoWithConsent(productType: String, apiVersion: String, productSubscriptionKey: String, environment: String): Flow<NetworkResult<UserInfoWithConsent>>

Retrieves the user information for a specified MTN MOMO user with consent.

Return

A Response containing the UserInfoWithConsent of the specified user.

Parameters

productSubscriptionKey

The subscription key for the product.

accessToken

The access token for authentication.

apiVersion

The version of the API to use.

productType

The type of product for which to retrieve the user information.