Class NoteClient
- Namespace
- Crews.PlanningCenter.Api.Giving.V2018_08_01
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the Note resource.
public class NoteClient : SingletonResourceClient<Note, NoteResource, NoteResponse>
- Inheritance
-
NoteClient
- Inherited Members
Constructors
NoteClient(HttpClient, Uri)
Client for interacting with the Note resource.
public NoteClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public NoteClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- NoteClient
The current NoteClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public NoteClient ClearParameters()
Returns
- NoteClient
The current NoteClient instance.
GetAsync(CancellationToken)
Fetches the Note resource asynchronously.
public Task<NoteResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<NoteResponse>
A task representing the asynchronous operation, containing the Note resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.