MynAccounting.Api.Client
1.0.1
dotnet add package MynAccounting.Api.Client --version 1.0.1
NuGet\Install-Package MynAccounting.Api.Client -Version 1.0.1
<PackageReference Include="MynAccounting.Api.Client" Version="1.0.1" />
paket add MynAccounting.Api.Client --version 1.0.1
#r "nuget: MynAccounting.Api.Client, 1.0.1"
// Install MynAccounting.Api.Client as a Cake Addin
#addin nuget:?package=MynAccounting.Api.Client&version=1.0.1
// Install MynAccounting.Api.Client as a Cake Tool
#tool nuget:?package=MynAccounting.Api.Client&version=1.0.1
MynAccounting.Api.Client - the C# library for the MynAccounting API
- API version: v1.0
- SDK version: 1.0.0
- Build date: 2019-12-10T13:17:57.465+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 MynAccounting.Api.Client.Api;
using MynAccounting.Api.Client.Client;
using Model;
Getting Started
using System;
using System.Diagnostics;
using MynAccounting.Api.Client.Api;
using MynAccounting.Api.Client.Client;
using Model;
namespace Example
{
public class Example
{
public void main()
{
var apiInstance = new AuthorityApi();
var authorityData = new AuthorityModel(); // AuthorityModel | (optional)
try
{
ApiResponseModel result = apiInstance.AddAuthority(authorityData);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AuthorityApi.AddAuthority: " + e.Message );
}
}
}
}
<a name="documentation-for-api-endpoints"></a>
Documentation for API Endpoints
All URIs are relative to https://accounting-api.myntech.io
Class | Method | HTTP request | Description |
---|---|---|---|
AuthorityApi | AddAuthority | POST /v1/authority/add | |
AuthorityApi | CheckIfAuthorityExists | POST /v1/authority/exists | |
AuthorityApi | CheckIfAuthorityExistsByAddress | POST /v1/authority/exists/byAddress | |
AuthorityApi | CheckIfAuthorityExistsById | POST /v1/authority/exists/byId | |
AuthorityApi | CheckIfAuthorityExistsByName | POST /v1/authority/exists/byName | |
AuthorityApi | GetAuthorityById | POST /v1/authority/get/byId | |
EnumApi | GetBaseEnumById | POST /v1/enum/get/baseEnumById | |
EnumApi | GetBaseEnumByKey | POST /v1/enum/get/baseEnumByKey | |
EnumApi | GetBaseEnums | GET /v1/enums/get | |
EnumApi | GetBaseEnumsByType | POST /v1/enum/get/baseEnumsByType | |
SubjectApi | AddAddress | POST /v1/subject/address/add | |
SubjectApi | AddDataItem | POST /v1/subject/dataitem/add | |
SubjectApi | AddProof | POST /v1/subject/proof/add | |
SubjectApi | AddSubject | POST /v1/subject/add | |
SubjectApi | CheckIfSubjectExistsByFiscalCode | POST /v1/subject/exists/byFiscalCode | |
SubjectApi | CheckIfSubjectExistsById | POST /v1/subject/exists/byId | |
SubjectApi | GetSubjectById | POST /v1/subject/get/byId | |
SubjectApi | GetSubjectsByFiscalCode | POST /v1/subjects/get/byFiscalCode | |
SubjectApi | GetSubjectsByUserId | POST /v1/subjects/get/byUserId |
<a name="documentation-for-models"></a>
Documentation for Models
- Model.AddressModel
- Model.ApiResponseModel
- Model.AttestationModel
- Model.AuthorityModel
- Model.BaseEnumModel
- Model.DataItemModel
- Model.ProofModel
- Model.SubjectModel
- Model.UserInvitationModel
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 | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.5
- 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 |
---|
- Bug fixing