/// <summary> /// Links a secondary account to a primary account. /// </summary> /// <param name="id">The ID of the primary account.</param> /// <param name="request">The <see cref="UserAccountLinkRequest" /> containing details of the secondary account to link.</param> /// <returns>Task<IList<AccountLinkResponse>>.</returns> public Task <IList <AccountLinkResponse> > LinkAccountAsync(string id, UserAccountLinkRequest request) { return(Connection.PostAsync <IList <AccountLinkResponse> >("users/{id}/identities", request, null, null, new Dictionary <string, string> { { "id", id } }, null, null)); }
public Task <IList <AccountLinkResponse> > LinkAccount(string id, UserAccountLinkRequest request) { return(LinkAccountAsync(id, request)); }
/// <summary> /// Links a secondary account to a primary account. /// </summary> /// <param name="id">The ID of the primary account.</param> /// <param name="request">The <see cref="UserAccountLinkRequest" /> containing details of the secondary account to link.</param> /// <returns>A <see cref="IList{AccountLinkResponse}"/> containing details about this account link.</returns> public Task <IList <AccountLinkResponse> > LinkAccountAsync(string id, UserAccountLinkRequest request) { return(Connection.SendAsync <IList <AccountLinkResponse> >(HttpMethod.Post, BuildUri($"users/{EncodePath(id)}/identities"), request, DefaultHeaders)); }
public async Task LinkUserAccountAsync(string userId, UserAccountLinkRequest userAccountLinkRequest) { await this.managementApiClient.Users.LinkAccountAsync(userId, userAccountLinkRequest); }