getUserInfoWithConsent

@GET(value = "/{productType}/oauth2/{apiVersion}/userinfo")
abstract suspend fun getUserInfoWithConsent(@Path(value = "productType") productType: String, @Path(value = "apiVersion") apiVersion: String, @Header(value = "Ocp-Apim-Subscription-Key") productSubscriptionKey: String, @Header(value = "X-Target-Environment") environment: String): Response<UserInfoWithConsent>

Makes a request to get the ApiUser Info with Consent.

Return

A Response containing the UserInfoWithConsent.

Parameters

productType

The API Products (MomoConstants.ProductTypes).

apiVersion

The app Version (e.g., v1_0 or v2_0).

productSubscriptionKey

The Product subscription Key (Ocp-Apim-Subscription-Key).

environment

The API environment (X-Target-Environment).