Table of Contents

Class UsersClient

Namespace
Nexus.Api.V1
Assembly
Nexus.Api.dll

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

public class UsersClient : IUsersClient
Inheritance
UsersClient
Implements
Inherited Members

Methods

CreateToken(CreateTokenRequest)

Creates a personal access token.

public string CreateToken(CreateTokenRequest token)

Parameters

token CreateTokenRequest

The personal access token to create.

Returns

string

CreateTokenAsync(CreateTokenRequest, CancellationToken)

Creates a personal access token.

public Task<string> CreateTokenAsync(CreateTokenRequest token, CancellationToken cancellationToken = default)

Parameters

token CreateTokenRequest

The personal access token to create.

cancellationToken CancellationToken

The token to cancel the current operation.

Returns

Task<string>

DeleteToken(Guid)

Deletes a personal access token.

public HttpResponseMessage DeleteToken(Guid tokenId)

Parameters

tokenId Guid

The identifier of the personal access token.

Returns

HttpResponseMessage

DeleteTokenAsync(Guid, CancellationToken)

Deletes a personal access token.

public Task<HttpResponseMessage> DeleteTokenAsync(Guid tokenId, CancellationToken cancellationToken = default)

Parameters

tokenId Guid

The identifier of the personal access token.

cancellationToken CancellationToken

The token to cancel the current operation.

Returns

Task<HttpResponseMessage>

DeleteTokenByValue(string)

Deletes a personal access token.

public HttpResponseMessage DeleteTokenByValue(string value)

Parameters

value string

The personal access token to delete.

Returns

HttpResponseMessage

DeleteTokenByValueAsync(string, CancellationToken)

Deletes a personal access token.

public Task<HttpResponseMessage> DeleteTokenByValueAsync(string value, CancellationToken cancellationToken = default)

Parameters

value string

The personal access token to delete.

cancellationToken CancellationToken

The token to cancel the current operation.

Returns

Task<HttpResponseMessage>

GetMe()

Gets the current user.

public MeResponse GetMe()

Returns

MeResponse

GetMeAsync(CancellationToken)

Gets the current user.

public Task<MeResponse> GetMeAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The token to cancel the current operation.

Returns

Task<MeResponse>

GetTokens()

Gets all personal access tokens.

public IReadOnlyDictionary<string, PersonalAccessToken> GetTokens()

Returns

IReadOnlyDictionary<string, PersonalAccessToken>

GetTokensAsync(CancellationToken)

Gets all personal access tokens.

public Task<IReadOnlyDictionary<string, PersonalAccessToken>> GetTokensAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The token to cancel the current operation.

Returns

Task<IReadOnlyDictionary<string, PersonalAccessToken>>