MynLogger.Api.Client
1.0.1
dotnet add package MynLogger.Api.Client --version 1.0.1
NuGet\Install-Package MynLogger.Api.Client -Version 1.0.1
<PackageReference Include="MynLogger.Api.Client" Version="1.0.1" />
paket add MynLogger.Api.Client --version 1.0.1
#r "nuget: MynLogger.Api.Client, 1.0.1"
// Install MynLogger.Api.Client as a Cake Addin
#addin nuget:?package=MynLogger.Api.Client&version=1.0.1
// Install MynLogger.Api.Client as a Cake Tool
#tool nuget:?package=MynLogger.Api.Client&version=1.0.1
MynLogger.Api.Client - the C# library for the MynLogger API
- API version: v1.0
- SDK version: 1.0.0
- Build date: 2019-12-10T12:11:13.316+01:00
Frameworks supported
- .NET 4.0 or later
Dependencies
The DLLs included in the package may not be the latest version. We recommned using [NuGet] (https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:
Install-Package RestSharp
Install-Package Newtonsoft.Json
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742
Installation
Run the following command to generate the DLL
- [Mac/Linux]
/bin/sh build.sh
- [Windows]
build.bat
Then include the DLL (under the bin
folder) in the C# project, and use the namespaces:
using MynLogger.Api.Client.Api;
using MynLogger.Api.Client.Client;
using Model;
Getting Started
using System;
using System.Diagnostics;
using MynLogger.Api.Client.Api;
using MynLogger.Api.Client.Client;
using Model;
namespace Example
{
public class Example
{
public void main()
{
var apiInstance = new EnumApi();
var baseEnumData = new BaseEnumModel(); // BaseEnumModel | (optional)
try
{
ApiResponseModel result = apiInstance.GetBaseEnumById(baseEnumData);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling EnumApi.GetBaseEnumById: " + e.Message );
}
}
}
}
<a name="documentation-for-api-endpoints"></a>
Documentation for API Endpoints
All URIs are relative to https://logger-api.myntech.io
Class | Method | HTTP request | Description |
---|---|---|---|
EnumApi | GetBaseEnumById | POST /v1/enum/get/baseEnumById | |
EnumApi | GetBaseEnumByKey | POST /v1/enum/get/baseEnumByKey | |
EnumApi | GetBaseEnumsByType | POST /v1/enum/get/baseEnumsByType | |
LogApi | AddLogEvent | POST /v1/log/add | |
LogApi | GetLogById | POST /v1/log/get/byId | |
LogApi | GetLogEvents | POST /v1/log/get | |
LogApi | SearchLogEvent | POST /v1/log/search | |
TraceApi | AddTraceEvent | POST /v1/trace/add | |
TraceApi | GetTraceById | POST /v1/trace/get/byId | |
TraceApi | GetTraceEvents | POST /v1/trace/get |
<a name="documentation-for-models"></a>
Documentation for Models
Documentation for Authorization
All endpoints require Bearer Authorization. The Bearer Token must be obtained via MynIdentity EndPoint
var apiInstance = new BaseApi(); apiInstance.Configuration.AddDefaultHeader("Authorization", String.Format("Bearer {0}", AccessToken));
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- Newtonsoft.Json (>= 12.0.3)
- Polly (>= 7.2.0)
- RestSharp (>= 105.2.3)
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 |
---|