IEventsService.Events
Collection of functions to interact with the Events API endpoint.
Method
HTTP request
Description
CreateEventAsync
Task<Event> CreateEventAsync(
Event @event,
RequestOptions? options = default,
CancellationToken cancellationToken = default)
Create a new event in the server.
DeleteEventAsync
Task<Event> DeleteEventAsync(
string eventId,
RequestOptions? options = default,
CancellationToken cancellationToken = default)
Delete an existing event with the event ID.
SearchEventsAsync
Task<List<Event>> SearchEventsAsync(
string? programId = default,
string? targetType = default,
List<string>? targetValues = default,
int? skip = default,
int? limit = default,
RequestOptions? options = default,
CancellationToken cancellationToken = default)
Searches all events known to the server. Use skip and pagination query params to limit response size.
FindEventByIdAsync
Task<Event> FindEventByIdAsync(
string eventId,
RequestOptions? options = default,
CancellationToken cancellationToken = default)
Find event associated by the event ID.
UpdateEventAsync
Task<Event> UpdateEventAsync(
string eventId,
Event @event,
RequestOptions? options = default,
CancellationToken cancellationToken = default)
Update an existing event with specified event ID.
Last updated
Was this helpful?