Crews.PlanningCenter.Api
1.0.0-preview.8
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.
See the version list below for details.
dotnet add package Crews.PlanningCenter.Api --version 1.0.0-preview.8
NuGet\Install-Package Crews.PlanningCenter.Api -Version 1.0.0-preview.8
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.8" />
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.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Crews.PlanningCenter.Api, 1.0.0-preview.8"
#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.8&prerelease // Install Crews.PlanningCenter.Api as a Cake Tool #tool nuget:?package=Crews.PlanningCenter.Api&version=1.0.0-preview.8&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
- Create a document context derived from
PlanningCenterDocumentContext
:
class MyContext : PlanningCenterDocumentContext
{
// Add any conventions or other context settings supported by the JSON:API Framework
}
- Create a resource POCO type:
class MyResource
{
public string? FavoriteColor { get; set; }
public int FavoriteNumber { get; set; }
}
- 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);
}
- Fetch your resource!
MyFetchableResource fetchableResource = new();
MyResource resource = await fetchableResource.GetAsync();
Product | Versions 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.
-
net8.0
- JsonApiFramework.Client (>= 2.10.1)
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 |