Table of Contents

Class PeopleImportHistoryClient

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

Client for interacting with the PeopleImportHistory resource.

public class PeopleImportHistoryClient : SingletonResourceClient<PeopleImportHistory, PeopleImportHistoryResource, PeopleImportHistoryResponse>
Inheritance
PeopleImportHistoryClient
Inherited Members

Constructors

PeopleImportHistoryClient(HttpClient, Uri)

Client for interacting with the PeopleImportHistory resource.

public PeopleImportHistoryClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Properties

Household

Associated Household.

public HouseholdClient Household { get; }

Property Value

HouseholdClient

Person

Associated Person.

public PersonClient Person { get; }

Property Value

PersonClient

Methods

GetAsync(CancellationToken)

Fetches the PeopleImportHistory resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<PeopleImportHistoryResponse>

A task representing the asynchronous operation, containing the PeopleImportHistory resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

IncludeHousehold()

Include related Household resources in the response.

public PeopleImportHistoryClient IncludeHousehold()

Returns

PeopleImportHistoryClient

IncludePerson()

Include related Person resources in the response.

public PeopleImportHistoryClient IncludePerson()

Returns

PeopleImportHistoryClient