MynAccounting.Api.Client 1.0.1

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package MynAccounting.Api.Client --version 1.0.1
NuGet\Install-Package MynAccounting.Api.Client -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MynAccounting.Api.Client" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MynAccounting.Api.Client --version 1.0.1
#r "nuget: MynAccounting.Api.Client, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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