Table of Contents

Class PaginatedSpamEmailAddressClient

Namespace
Crews.PlanningCenter.Api.People.V2023_02_15
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with SpamEmailAddress collection resources.

public class PaginatedSpamEmailAddressClient : PaginatedResourceClient<SpamEmailAddress, SpamEmailAddressResource, SpamEmailAddressCollectionResponse, SpamEmailAddressResponse>
Inheritance
PaginatedSpamEmailAddressClient
Inherited Members

Constructors

PaginatedSpamEmailAddressClient(HttpClient, Uri)

Client for interacting with SpamEmailAddress collection resources.

public PaginatedSpamEmailAddressClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches a paginated list of SpamEmailAddress resources asynchronously.

public Task<SpamEmailAddressCollectionResponse> GetAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<SpamEmailAddressCollectionResponse>

A task representing the asynchronous operation, containing a paginated list of SpamEmailAddress resources.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

WithId(string)

Creates a new instance of a SpamEmailAddress client for a specific resource ID.

public SpamEmailAddressClient WithId(string id)

Parameters

id string

The ID of the resource to create a client for.

Returns

SpamEmailAddressClient

A new instance of the resource client for the specified resource ID.