/// <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&lt;IList&lt;AccountLinkResponse&gt;&gt;.</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));
 }
Example #2
0
 public Task <IList <AccountLinkResponse> > LinkAccount(string id, UserAccountLinkRequest request)
 {
     return(LinkAccountAsync(id, request));
 }
Example #3
0
 /// <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));
 }
Example #4
0
 public async Task LinkUserAccountAsync(string userId, UserAccountLinkRequest userAccountLinkRequest)
 {
     await this.managementApiClient.Users.LinkAccountAsync(userId, userAccountLinkRequest);
 }