Planfact.AmoCrm.Client 1.2.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Planfact.AmoCrm.Client --version 1.2.2
                    
NuGet\Install-Package Planfact.AmoCrm.Client -Version 1.2.2
                    
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="Planfact.AmoCrm.Client" Version="1.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Planfact.AmoCrm.Client" Version="1.2.2" />
                    
Directory.Packages.props
<PackageReference Include="Planfact.AmoCrm.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Planfact.AmoCrm.Client --version 1.2.2
                    
#r "nuget: Planfact.AmoCrm.Client, 1.2.2"
                    
#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.
#:package Planfact.AmoCrm.Client@1.2.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Planfact.AmoCrm.Client&version=1.2.2
                    
Install as a Cake Addin
#tool nuget:?package=Planfact.AmoCrm.Client&version=1.2.2
                    
Install as a Cake Tool

AmoCrm.Client

NuGet Version NuGet Downloads Build Status codecov License: MIT .NET GitHub release

Идиоматичный и типобезопасный .NET клиент для работы с amoCRM API v4 с поддержкой кэширования и OAuth 2.0.

Особенности

  • 🛠️ Типобезопасность - строго типизированные модели для всех сущностей amoCRM
  • 🔐 OAuth 2.0 - поддержка клиентских и серверных интеграций
  • 🛡️ Надежность - политики повтора, валидация данных, обработка ошибок
  • 💾 HTTP-кэширование - прозрачное кэширование ответов API (10 минут TTL)
  • 📝 Структурное логирование - Microsoft.Extensions.Logging
  • ⚙️ Гибкая конфигурация - настройка как через код, так и через appsettings.json с поддержкой options pattern
  • 🧩 DI интеграция - готовые расширения для ASP.NET Core
  • 🧪 Тестируемость - проект включает набор unit-тестов, все зависимости легко мокаются

Поддержка платформ

  • .NET 6.0+
  • .NET 8.0+
  • .NET 9.0+

Установка

dotnet add package Planfact.AmoCrm.Client

Быстрый старт

// Program.cs
builder.Services.AddAmoCrmClient(builder.Configuration);

// Внедрение зависимости
public class AccountService
{
    private readonly IAmoCrmClient _amoCrmClient;

    public AccountService(IAmoCrmClient amoCrmClient)
    {
        _amoCrmClient = amoCrmClient;
    }

    public async Task<AccountBusinessModel> GetAccountAsync(string accessToken, string subdomain)
    {    
        AccountResponse account = await _amoCrmClient.GetAccountAsync(accessToken, subdomain);

        return new AccountBusinessModel(account);
    }
}

Тестирование

В текущей реализации проект содержит более 600 unit тестов, обеспечивающих покрытие основной функциональности. В ходе развития проекта будут реализованы интеграционные тесты и snapshot-тесты контракта API

Запуск тестов

dotnet test Planfact.AmoCrm.Client.Tests

Документация

Лицензия

MIT License. См. LICENSE для деталей.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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. 
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
2.0.1 4,410 4/10/2026
2.0.0 3,098 12/9/2025
1.3.0 985 11/21/2025
1.2.6 995 10/29/2025
1.2.5 814 10/24/2025
1.2.4 207 10/24/2025
1.2.3 289 10/22/2025
1.2.2 210 10/17/2025
1.2.1 242 10/16/2025
1.2.0 233 10/15/2025
1.1.0 539 10/8/2025
1.0.0 501 10/3/2025

🎉 Релиз v1.2.2 – Теги и дополнительные поля

     ✨ Что нового:
     • Поддержка частичного заполнения тегов при создании/редактировании сущностей amoCRM
     • Поддержка нового типа дополнительных полей - multitext

     🔧 Для чего это нужно:
     • Покрытие use-кейсов, в которых нет возможности заполнить id или name тега
     • Устранение ошибок при десериализации полей с типом multitext

     ✅ Обратная совместимость:
     Изменения направлены на расширение имеющейся функциональности и не нарушают обратную совместимость публичного API библиотеки Planfact.AmoCrm.Client.