/BlueTracker.SDK.Reporting

Wrapper for BlueTracker Reporting public API.

Primary LanguageC#GNU Lesser General Public License v3.0LGPL-3.0

Build Status

BlueTracker.SDK.Reporting

This project is a C# wrapper of the Bluetracker Reporting REST API. It is used to easily query and modify Bluetracker Reporting entities in C#.

Basic usage

This example explains how to query ships.

Install the package from nuget.org:

Install-Package BlueTracker.SDK.Reporting

Create an API key. The key can be created via the Company Manager in the Bluetracker application.

Create the ship client and insert the API key:

var client = new BlueTracker.SDK.Reporting.Clients.ShipClient(authorization: "<API-KEY>");

Query all ships:

var ships = client.GetAll();

Clients

The package contains one client wrapper for each API resource. Each client contains methods to GET resources according to the API specification: https://api.bluetracker-reporting.com

  • BlueTracker.SDK.Reporting.Clients.ShipClient
  • BlueTracker.SDK.Reporting.Clients.ReportClient
  • BlueTracker.SDK.Reporting.Clients.PortCallClient