Dime.Scheduler.Sdk 2.0.0-alpha.5

This is a prerelease version of Dime.Scheduler.Sdk.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Dime.Scheduler.Sdk --version 2.0.0-alpha.5                
NuGet\Install-Package Dime.Scheduler.Sdk -Version 2.0.0-alpha.5                
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="Dime.Scheduler.Sdk" Version="2.0.0-alpha.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Dime.Scheduler.Sdk --version 2.0.0-alpha.5                
#r "nuget: Dime.Scheduler.Sdk, 2.0.0-alpha.5"                
#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 Dime.Scheduler.Sdk as a Cake Addin
#addin nuget:?package=Dime.Scheduler.Sdk&version=2.0.0-alpha.5&prerelease

// Install Dime.Scheduler.Sdk as a Cake Tool
#tool nuget:?package=Dime.Scheduler.Sdk&version=2.0.0-alpha.5&prerelease                

Dime.Scheduler SDK for .NET

This repository contains the .NET SDK for Dime.Scheduler's RESTful API services. The SDK is a gateway to connect any system to Dime.Scheduler through its extensive import pipeline and large collection of web APIs.

Check out the ๐Ÿ“š docs ยป for more info.

Installation

Use the package manager NuGet to install the base library of the SDK:

dotnet add package Dime.Scheduler.Sdk

Prerequisites

To clone and run this application, you'll need Visual Studio 2022 or higher. The application is built with C# 10 and targets:

  • .NET 7
  • .NET 8

Version 2 is built for the cloud version of Dime.Scheduler. Use 1.x.x for on-premise versions.

Usage

The example below fetches the resources available in Dime.Scheduler:

DimeSchedulerClient client = new("http://mydimescheduler.com", "my-api-key");
IEnumerable<Resource> resources = await client.Resources.GetAsync(new ResourceRequest());
foreach (Resource resource in resources)
    Console.WriteLine(resource.Email);

The DimeSchedulerClient class is the entry point and it is where all endpoints are exposed:

DimeSchedulerClient client = new(uri,  "my-api-key");

Two arguments are required: the URI to Dime.Scheduler and a valid API key. With these credentials, you can access any of the endpoints.

IEnumerable<Resource> resources = await resourceEndpoint.GetAsync(new ResourceRequest());

Import

The import API is the entry point for external systems to feed data into Dime.Scheduler. The import endpoints expose a set of import pipelines to map and save data in the Dime.Scheduler database. Any class that implements the IImportRequestable interface is eligible to be processed by the import service in Dime.Scheduler.

This example adds or updates a category:

using Dime.Scheduler.Sdk.Import;

DimeSchedulerClient client = new(uri,  "my-api-key");
Category category = new("Category #1", "#6e62b5");
await client.Import.RunAsync(category, TransactionType.Append);

This example adds or updates a filter group:

using Dime.Scheduler.Sdk.Import;

string uri = "http://mydimescheduler.com";
DimeSchedulerClient client = new(uri,  "my-api-key");

FilterGroup filterGroup = new FilterGroup { Name = "Group 1" };
await client.Import.RunAsync(filterGroup, TransactionType.Append);

Read more

Check out the ๐Ÿ“š docs ยป for more info.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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
2.0.0-alpha.18 174 11/20/2023
2.0.0-alpha.17 307 11/7/2023
2.0.0-alpha.16 279 11/7/2023
2.0.0-alpha.7 349 8/27/2023
2.0.0-alpha.6 82 8/27/2023
2.0.0-alpha.5 77 8/27/2023
2.0.0-alpha.4 72 8/26/2023
2.0.0-alpha.3 87 7/25/2023
2.0.0-alpha.2 81 7/19/2023
2.0.0-alpha.1 2,995 3/13/2023
1.0.1 285 11/22/2023
1.0.0 364 3/11/2023
1.0.0-beta.15 622 10/27/2022
1.0.0-beta.14 123 9/28/2022
1.0.0-beta.13 268 8/29/2022
1.0.0-beta.12 452 7/3/2022
1.0.0-beta.11 131 6/23/2022
1.0.0-beta.10 119 6/23/2022
1.0.0-beta.9 232 4/28/2022
1.0.0-beta.7 128 1/7/2022
1.0.0-beta.6 131 12/30/2021
1.0.0-beta.5 284 12/15/2021
1.0.0-beta.4 146 12/15/2021
1.0.0-beta.3 143 12/8/2021
1.0.0-beta.2 786 12/3/2021
1.0.0-beta.1 159 11/22/2021
0.1.0-beta.2 169 11/17/2021
0.1.0-beta.1 280 10/13/2021
0.1.0-alpha.20 195 10/13/2021
0.1.0-alpha.19 156 10/12/2021
0.1.0-alpha.17 203 5/25/2021
0.1.0-alpha.16 174 4/22/2021
0.1.0-alpha.15 174 4/12/2021
0.1.0-alpha.14 155 4/12/2021
0.1.0-alpha.13 176 3/30/2021
0.1.0-alpha.12 197 3/24/2021
0.1.0-alpha.11 199 3/23/2021
0.1.0-alpha.10 179 3/15/2021
0.1.0-alpha.9 198 3/6/2021
0.1.0-alpha.8 219 3/5/2021
0.1.0-alpha.7 192 3/2/2021
0.1.0-alpha.6 177 2/26/2021
0.1.0-alpha.5 160 2/26/2021
0.1.0-alpha.4 183 2/24/2021
0.1.0-alpha.3 150 2/23/2021
0.1.0-alpha.2 199 2/23/2021
0.1.0-alpha.1 178 2/20/2021
0.0.1-alpha.2 166 2/17/2021
0.0.1-alpha.1 182 2/17/2021