retrieveUserLinksByUserId method

Future<ClientResponse<IdentityProviderLinkResponse, Errors>> retrieveUserLinksByUserId(
  1. String identityProviderId,
  2. String userId
)

Retrieve all Identity Provider users (links) for the user. Specify the optional identityProviderId to retrieve links for a particular IdP.

@param {String} identityProviderId (Optional) The unique Id of the identity provider. Specify this value to reduce the links returned to those for a particular IdP. @param {String} userId The unique Id of the user. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<IdentityProviderLinkResponse, Errors>>
    retrieveUserLinksByUserId(String identityProviderId, String userId) {
  return _start<IdentityProviderLinkResponse, Errors>()
      .withUri('/api/identity-provider/link')
      .withParameter('identityProviderId', identityProviderId)
      .withParameter('userId', userId)
      .withMethod('GET')
      .withResponseHandler(defaultResponseHandlerBuilder(
          (d) => IdentityProviderLinkResponse.fromJson(d)))
      .go();
}