Logicdrop.Sparks.OpenApi
4.3.1
See the version list below for details.
dotnet add package Logicdrop.Sparks.OpenApi --version 4.3.1
NuGet\Install-Package Logicdrop.Sparks.OpenApi -Version 4.3.1
<PackageReference Include="Logicdrop.Sparks.OpenApi" Version="4.3.1" />
paket add Logicdrop.Sparks.OpenApi --version 4.3.1
#r "nuget: Logicdrop.Sparks.OpenApi, 4.3.1"
// Install Logicdrop.Sparks.OpenApi as a Cake Addin
#addin nuget:?package=Logicdrop.Sparks.OpenApi&version=4.3.1
// Install Logicdrop.Sparks.OpenApi as a Cake Tool
#tool nuget:?package=Logicdrop.Sparks.OpenApi&version=4.3.1
Logicdrop Sparks .Net Core API Client
C# .Net Core library to help with accessing the Sparks API.
Installation & Usage
Accessing NUGET Package
In order to access Logicdrop.Sparks.OpenApi, you must add a nuget.config
file into the root of your project. This file will tell the nuget cli
where to check for the package. An example of this files contents,
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="repositoryPath" value="packages/" />
</config>
<packageSources>
<add key="Logicdrop" value="https://depot.logicdrop.com/repository/nuget-public" />
</packageSources>
</configuration>
In the above XML we tell NUGET that we want to manage our packages inside packages/
. We also added another source to NUGET to point to the private Logicpdrop repository.
Installing the Package
To install the package locally, run the following command inside your project directory,
nuget install Logicdrop.Sparks.OpenApi -Version 4.3.1
If this command was ran in the same folder as your nuget.config
the required packages will be downloaded in you repositoryPath
mentioned in the file.
Linking Package to Project
To use the package inside you project, you will need to add a reference to the package inside your .csproj
file. An example of what this file can look like is shown below,
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Logicdrop.Sparks.OpenApi" version="4.1.1-SNAPSHOT.39632" />
</ItemGroup>
</Project>
Once the reference has been added, you must run, dotnet restore
to properly link the package to your project.
Getting Started
Here is a basic Program.cs
file that implements a call from thr Project Service,
using System;
using Logicdrop.Sparks.OpenApi.Api;
using Logicdrop.Sparks.OpenApi.Client;
namespace sample
{
class Program
{
static void Main(string[] args)
{
Configuration configuration = new Configuration("CLIENT_ID", "CLIENT_SECRET");
ProjectServicesApi projectService = new ProjectServicesApi(configuration);
string client = "CLIENT_NAME";
try {
var result = projectService.ListProjects(client);
// Do something with the API result
}
catch(Exception ex) {
// Do something with the error that was thrown
}
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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 was computed. 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. |
.NET Core | netcoreapp2.0 is compatible. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.0
- CompareNETObjects (>= 4.57.0)
- JsonSubTypes (>= 1.5.2)
- Newtonsoft.Json (>= 12.0.1)
- RestSharp (>= 106.10.1)
- System.ComponentModel.Annotations (>= 4.5.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Minor update