Crews.PlanningCenter.Api 1.0.0-preview.6

Prefix Reserved
This is a prerelease version of Crews.PlanningCenter.Api.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Crews.PlanningCenter.Api --version 1.0.0-preview.6                
NuGet\Install-Package Crews.PlanningCenter.Api -Version 1.0.0-preview.6                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Crews.PlanningCenter.Api" Version="1.0.0-preview.6" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Crews.PlanningCenter.Api --version 1.0.0-preview.6                
#r "nuget: Crews.PlanningCenter.Api, 1.0.0-preview.6"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Crews.PlanningCenter.Api as a Cake Addin
#addin nuget:?package=Crews.PlanningCenter.Api&version=1.0.0-preview.6&prerelease

// Install Crews.PlanningCenter.Api as a Cake Tool
#tool nuget:?package=Crews.PlanningCenter.Api&version=1.0.0-preview.6&prerelease                

Planning Center API Library

A client library for the Planning Center API built on the JSON:API Framework.

[!NOTE] This is a "scaffolding library" that consists mostly of abstract members and interfaces. It is intended to be implemented as a dependency in the development of higher level Planning Center API clients.

Installation

Crews.PlanningCenter.Api is available on NuGet:

dotnet add package Crews.PlanningCenter.Api

Basic Usage

  1. Create a document context derived from PlanningCenterDocumentContext:
class MyContext : PlanningCenterDocumentContext
{
	// Add any conventions or other context settings supported by the JSON:API Framework
}
  1. Create a resource POCO type:
class MyResource
{
	public string? FavoriteColor { get; set; }
	public int FavoriteNumber { get; set; }
}
  1. Create a fetchable resource wrapper:
class MyFetchableResource : PlanningCenterSingletonFetchableResource<MyResource, MyFetchableResource, MyContext>
{
	private static readonly Uri _resourceUri = new("https://api-url.com/path/to/resource");

	// The following is for example only; do not use HttpClient like this.
	private static readonly HttpClient _client = new();

	public MyFetchableResource() : base(_resourceUri, _client) { }

	// Optionally implement POST and PATCH members, if your resource supports them.
	public new Task<MyResource?> PostAsync(MyResource resource) => base.PostAsync(resource);
	public new Task<MyResource?> PatchAsync(MyResource resource) => base.PatchAsync(resource);
}
  1. Fetch your resource!
MyFetchableResource fetchableResource = new();
MyResource resource = await fetchableResource.GetAsync();
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0-preview.11 48 11/11/2024
1.0.0-preview.10 48 11/11/2024
1.0.0-preview.9 40 11/9/2024
1.0.0-preview.8 40 11/9/2024
1.0.0-preview.7 48 10/16/2024
1.0.0-preview.6 48 10/15/2024
1.0.0-preview.5 50 10/3/2024
1.0.0-preview.4 44 10/3/2024
1.0.0-preview.3 51 9/25/2024
1.0.0-preview.2 65 5/22/2024
1.0.0-preview.1 62 5/22/2024