Table of Contents

Class PaginatedEmailClient

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

Client for interacting with Email collection resources.

public class PaginatedEmailClient : PaginatedResourceClient<Email, EmailResource, EmailCollectionResponse, EmailResponse>
Inheritance
PaginatedEmailClient
Inherited Members

Constructors

PaginatedEmailClient(HttpClient, Uri)

Client for interacting with Email collection resources.

public PaginatedEmailClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches a paginated list of Email resources asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<EmailCollectionResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

OrderByAddress()

Sort response items by the Address attribute.

public EmailClient OrderByAddress()

Returns

EmailClient

OrderByAddressDescending()

Sort response items by the Address attribute. Use reverse order.

public EmailClient OrderByAddressDescending()

Returns

EmailClient

OrderByCreatedAt()

Sort response items by the CreatedAt attribute.

public EmailClient OrderByCreatedAt()

Returns

EmailClient

OrderByCreatedAtDescending()

Sort response items by the CreatedAt attribute. Use reverse order.

public EmailClient OrderByCreatedAtDescending()

Returns

EmailClient

OrderByLocation()

Sort response items by the Location attribute.

public EmailClient OrderByLocation()

Returns

EmailClient

OrderByLocationDescending()

Sort response items by the Location attribute. Use reverse order.

public EmailClient OrderByLocationDescending()

Returns

EmailClient

OrderByPrimary()

Sort response items by the Primary attribute.

public EmailClient OrderByPrimary()

Returns

EmailClient

OrderByPrimaryDescending()

Sort response items by the Primary attribute. Use reverse order.

public EmailClient OrderByPrimaryDescending()

Returns

EmailClient

OrderByUpdatedAt()

Sort response items by the UpdatedAt attribute.

public EmailClient OrderByUpdatedAt()

Returns

EmailClient

OrderByUpdatedAtDescending()

Sort response items by the UpdatedAt attribute. Use reverse order.

public EmailClient OrderByUpdatedAtDescending()

Returns

EmailClient

PostAsync(Email, CancellationToken)

Creates a new Email resource asynchronously.

public Task<EmailResponse> PostAsync(Email resource, CancellationToken cancellationToken = default)

Parameters

resource Email

The resource data to be sent in the POST request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<EmailResponse>

A task representing the asynchronous operation, containing the created Email resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

PostAsync(JsonApiDocument<EmailResource>, CancellationToken)

Creates a new Email resource asynchronously.

public Task<EmailResponse> PostAsync(JsonApiDocument<EmailResource> document, CancellationToken cancellationToken = default)

Parameters

document JsonApiDocument<EmailResource>

The JSON:API document to be sent in the POST request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<EmailResponse>

A task representing the asynchronous operation, containing the created Email resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

WhereAddress(string)

Query response items by the Address attribute.

public EmailClient WhereAddress(string value)

Parameters

value string

Returns

EmailClient

WhereBlocked(bool)

Query response items by the Blocked attribute.

public EmailClient WhereBlocked(bool value)

Parameters

value bool

Returns

EmailClient

WhereCreatedAt(DateTime)

Query response items by the CreatedAt attribute.

public EmailClient WhereCreatedAt(DateTime value)

Parameters

value DateTime

Returns

EmailClient

WhereLocation(string)

Query response items by the Location attribute.

public EmailClient WhereLocation(string value)

Parameters

value string

Returns

EmailClient

WherePrimary(bool)

Query response items by the Primary attribute.

public EmailClient WherePrimary(bool value)

Parameters

value bool

Returns

EmailClient

WhereUpdatedAt(DateTime)

Query response items by the UpdatedAt attribute.

public EmailClient WhereUpdatedAt(DateTime value)

Parameters

value DateTime

Returns

EmailClient

WithId(string)

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

public EmailClient WithId(string id)

Parameters

id string

The ID of the resource to create a client for.

Returns

EmailClient

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