NEW 13/02/2021 .NET 5 support
This is an unofficial implementation of the Fatture in Cloud Api targeting multiple .NET frameworks:
.NET Core 2.1
.NET Core 2.2
.NET Core 3.1
.NET Standard 2.0
.NET Standard 2.1
.NET 5
The package is based on the /v1 API version 0.9.14 https://api.fattureincloud.it/v1/documentation/dist/
We are integrating the whole app and the DTOs, hereafter the list of implemented services
- [x] Anagrafica
- [x] Prodotti
- [x] Documenti
- [x] Acquisti
- [x] Corrispettivi
- [x] Magazzino
- [x] Mail
- [x] Info
Nuget
Windows
Install-Package Higrow.FattureInCloud.Net -Version 0.9.14.5
Linux/MacOsx
dotnet add package Higrow.FattureInCloud.Net --version 0.9.14.5
Endpoints are split in services in the Higrow.FattureInCloud.Net.Services as follow:
- AnagraficaService
- ProdottiService
- DocumentiService
- AcquistiService
- InfoService
- CorrispettiviService
- MagazzinoService
- MailService
To start using a Service you should enter your FattureInCloud api_uid and api_key, please go here to get yours https://secure.fattureincloud.it/api
Includes
include Higrow.FattureInCloud.Net.Services
include Higrow.FattureInCloud.Net.DTO
include Higrow.FattureInCloud.Net.Constants
Create a service
AnagraficaService service = new AnagraficaService();
service.SetKeys("your_api_uid","your_api_key");
All Request and Response DTO have been mapped, exploring the service method you can easily build your queries and get.
Example
//the library does not manage exception, don't forget to surrond with try catch
try
{
AnagraficaListaResult result = await service.Lista(Soggetto.CLIENTI, new AnagraficaListaRequest(){});
}
catch (Exception ex)
{
//manage exception
Console.WriteLine(ex.Message);
Console.WriteLine(await service.LastResponse?.Content.ReadAsStringAsync()); //service.LastResponse contains the LastResponse, might be null if errors happened before any possible response
}
Please feel free to report issues on the project GitHub page
I don't need money honestly, but should be happy to donate something because you feel it, than you can send them over my PayPal
Thumbs up and comments are always welcome and more than sufficient ;)