Crews.PlanningCenter.Api
1.0.0-preview.14
Prefix Reserved
This is a prerelease version of Crews.PlanningCenter.Api.
dotnet add package Crews.PlanningCenter.Api --version 1.0.0-preview.14
NuGet\Install-Package Crews.PlanningCenter.Api -Version 1.0.0-preview.14
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.14" />
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.14
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.14"
#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.14&prerelease // Install Crews.PlanningCenter.Api as a Cake Tool #tool nuget:?package=Crews.PlanningCenter.Api&version=1.0.0-preview.14&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
- Crews.Extensions.Http (>= 1.0.0)
- Crews.Extensions.Primitives (>= 1.1.0)
- Crews.PlanningCenter.Models (>= 1.0.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.14 | 46 | 12/6/2024 |
1.0.0-preview.13 | 46 | 11/30/2024 |
1.0.0-preview.12 | 44 | 11/29/2024 |
1.0.0-preview.11 | 58 | 11/11/2024 |
1.0.0-preview.10 | 56 | 11/11/2024 |
1.0.0-preview.9 | 50 | 11/9/2024 |
1.0.0-preview.8 | 50 | 11/9/2024 |
1.0.0-preview.7 | 54 | 10/16/2024 |
1.0.0-preview.6 | 60 | 10/15/2024 |
1.0.0-preview.5 | 55 | 10/3/2024 |
1.0.0-preview.4 | 49 | 10/3/2024 |
1.0.0-preview.3 | 62 | 9/25/2024 |
1.0.0-preview.2 | 70 | 5/22/2024 |
1.0.0-preview.1 | 67 | 5/22/2024 |