Class FormsClient
- Namespace
- Auth0.ManagementApi.Clients
- Assembly
- Auth0.ManagementApi.dll
public class FormsClient : BaseClient, IFormsClient
- Inheritance
-
FormsClient
- Implements
- Inherited Members
Constructors
FormsClient(IManagementConnection, Uri, IDictionary<string, string>)
Initializes a new instance of FormsClient.
public FormsClient(IManagementConnection connection, Uri baseUri, IDictionary<string, string> defaultHeaders)
Parameters
connection
IManagementConnectionIManagementConnection used to make all API calls.
baseUri
UriUri 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
CreateAsync(FormCreateRequest, CancellationToken)
Create a form.
public Task<Form> CreateAsync(FormCreateRequest request, CancellationToken cancellationToken = default)
Parameters
request
FormCreateRequestcancellationToken
CancellationToken
Returns
DeleteAsync(string, CancellationToken)
Delete a form.
public Task DeleteAsync(string id, CancellationToken cancellationToken = default)
Parameters
id
stringID of the form to be deleted
cancellationToken
CancellationToken
Returns
GetAllAsync(FormsGetRequest, CancellationToken)
Get all Forms
public Task<IPagedList<FormBase>> GetAllAsync(FormsGetRequest request, CancellationToken cancellationToken = default)
Parameters
request
FormsGetRequestcancellationToken
CancellationToken
Returns
- Task<IPagedList<FormBase>>
All available Forms.
GetAsync(FormsGetRequest, CancellationToken)
Get A form.
public Task<Form> GetAsync(FormsGetRequest request, CancellationToken cancellationToken = default)
Parameters
request
FormsGetRequestcancellationToken
CancellationToken
Returns
UpdateAsync(string, FormUpdateRequest, CancellationToken)
Update a form.
public Task<Form> UpdateAsync(string id, FormUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
id
stringID of the form to be updated
request
FormUpdateRequestcancellationToken
CancellationToken