Table of Contents

Class TicketsClient

Namespace
Auth0.ManagementApi.Clients
Assembly
Auth0.ManagementApi.dll

Contains methods to access the /tickets endpoints.

public class TicketsClient : BaseClient, ITicketsClient
Inheritance
TicketsClient
Implements
Inherited Members

Constructors

TicketsClient(IManagementConnection, Uri, IDictionary<string, string>)

Initializes a new instance of TicketsClient.

public TicketsClient(IManagementConnection connection, Uri baseUri, IDictionary<string, string> defaultHeaders)

Parameters

connection IManagementConnection

IManagementConnection used to make all API calls.

baseUri Uri

Uri of the endpoint to use in making API calls.

defaultHeaders IDictionary<string, string>

Dictionary containing default headers included with every request this client makes.

Methods

CreateEmailVerificationTicketAsync(EmailVerificationTicketRequest, CancellationToken)

Creates an email verification ticket.

public Task<Ticket> CreateEmailVerificationTicketAsync(EmailVerificationTicketRequest request, CancellationToken cancellationToken = default)

Parameters

request EmailVerificationTicketRequest

The EmailVerificationTicketRequest containing the details of the ticket to create.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<Ticket>

The newly created Ticket.

CreatePasswordChangeTicketAsync(PasswordChangeTicketRequest, CancellationToken)

Creates a password change ticket.

public Task<Ticket> CreatePasswordChangeTicketAsync(PasswordChangeTicketRequest request, CancellationToken cancellationToken = default)

Parameters

request PasswordChangeTicketRequest

The PasswordChangeTicketRequest containing the details of the ticket to create.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<Ticket>

The newly created Ticket.