Logicdrop.Sparks.OpenApi 4.3.2

dotnet add package Logicdrop.Sparks.OpenApi --version 4.3.2
NuGet\Install-Package Logicdrop.Sparks.OpenApi -Version 4.3.2
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="Logicdrop.Sparks.OpenApi" Version="4.3.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Logicdrop.Sparks.OpenApi --version 4.3.2
#r "nuget: Logicdrop.Sparks.OpenApi, 4.3.2"
#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 Logicdrop.Sparks.OpenApi as a Cake Addin
#addin nuget:?package=Logicdrop.Sparks.OpenApi&version=4.3.2

// Install Logicdrop.Sparks.OpenApi as a Cake Tool
#tool nuget:?package=Logicdrop.Sparks.OpenApi&version=4.3.2

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.1.1-SNAPSHOT.39632

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.3.2" />
  </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 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. 
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
4.3.2 492 2/14/2020
4.3.1 430 2/14/2020

Minor update