FleetGoHttpLibrary 26.2.5
dotnet add package FleetGoHttpLibrary --version 26.2.5
NuGet\Install-Package FleetGoHttpLibrary -Version 26.2.5
<PackageReference Include="FleetGoHttpLibrary" Version="26.2.5" />
<PackageVersion Include="FleetGoHttpLibrary" Version="26.2.5" />
<PackageReference Include="FleetGoHttpLibrary" />
paket add FleetGoHttpLibrary --version 26.2.5
#r "nuget: FleetGoHttpLibrary, 26.2.5"
#:package FleetGoHttpLibrary@26.2.5
#addin nuget:?package=FleetGoHttpLibrary&version=26.2.5
#tool nuget:?package=FleetGoHttpLibrary&version=26.2.5
fleetgo-httplibrary
This package handles requests to the FleetGO API
Technical info
To run this project you will need to have .NET 9 installed
Dependancy injection
To include the service into your project use the following:
builder.Services.AddFleetGoHttpLibrary(builder.Configuration);
The default section the configuration will read out of is "FleetGO". This will work for your local.settings.json as well as within your user secrets. The section can be configured by adding a second parameter with your wanted section name.
The following secrets are required:
"FleetGO:ClientId": "",
"FleetGO:ClientSecret": "",
"FleetGO:Username": "",
"FleetGO:Password": ""
Services
The services are divided based on category. These categories are:
- IFleetGoTokenService
- IFleetGoEquipmentService
- IFleetGoTachoService
- IFleetGoTripService
- IFleetGoEmployeeService
IFleetGoTokenService
This service will give the user the ability to require an access token based on the login result. For this, you can use GetAccessToken(). This is used for the front-end (vite) to make a connection to the live location updates.
IFleetGoEquipmentService
This service will give the user the ability to get equipment from FleetGO:
- GetTrackedObjects, returns a list of devices mapped to a model which can be used by FleetGO Barneveld (map usage)
- GetEquipmentDTOById, returns a FleetGO equipment DTO based on the given EquipmentId (if found)
IFleetGoTachoService
This service will give the user the ability to access DDD related data:
- GetTachoFileContent, returns a byte array with the file content of a DDD file
- GetTachoFiles, returns a list of DDD files that have activities inside them within the queried period
IFleetGoTripService
This service will give the user the ability to get data of trips:
- GetEquipmentId, returns a list of drive history models for the given equipment id within the selected period
- GetDeviceLocationHistory, returns a list of devices which have been inside a specific range of a lat/lng within a given period. This is used within the DeviceLocationHistory functionality within FleetControl.
IFleetGoEmployeeService
This service will give the user the ability to get data of employees:
- GetEmployees, returns a list of employees of a company
IFleetGoGreenDrivingService
This service will give the user the ability to get green driving data of employees:
- GetGreenDrivingDriverSummary, returns green driving summary of the selected day
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Microsoft.Extensions.Http (>= 9.0.10)
-
net9.0
- Microsoft.Extensions.Http (>= 9.0.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.