XyloCode.ThirdPartyServices.Cdek
2.0.1
Prefix Reserved
dotnet add package XyloCode.ThirdPartyServices.Cdek --version 2.0.1
NuGet\Install-Package XyloCode.ThirdPartyServices.Cdek -Version 2.0.1
<PackageReference Include="XyloCode.ThirdPartyServices.Cdek" Version="2.0.1" />
<PackageVersion Include="XyloCode.ThirdPartyServices.Cdek" Version="2.0.1" />
<PackageReference Include="XyloCode.ThirdPartyServices.Cdek" />
paket add XyloCode.ThirdPartyServices.Cdek --version 2.0.1
#r "nuget: XyloCode.ThirdPartyServices.Cdek, 2.0.1"
#:package XyloCode.ThirdPartyServices.Cdek@2.0.1
#addin nuget:?package=XyloCode.ThirdPartyServices.Cdek&version=2.0.1
#tool nuget:?package=XyloCode.ThirdPartyServices.Cdek&version=2.0.1
CDEK API client library
An unofficial .NET full support client library for accessing the CDEK API v2.0.
- NuGet (.NET library)
- GitHub (source code)
- Official documentation
Supported Platforms
- .NET 8.0 LTS.
- .NET 10.0 LTS.
CDEK
The express delivery company was founded in Novosibirsk by graduates of the Novosibirsk State University Leonid Goldort and Vyacheslav Piksayev in 2000 to transport goods from the Korzina.ru online store to the cities of Siberia and the Russian Far East.
Official website: https://www.cdek.ru/.
Supported Methods
Full support.
How to use
using System;
using System.Threading.Tasks;
using XyloCode.ThirdPartyServices.Cdek;
using XyloCode.ThirdPartyServices.Cdek.Helpers;
namespace CdekTestConsole
{
internal class Program
{
static void Main(string[] args)
{
Task.Run(async () => await Test());
Console.ReadLine();
}
private static async Task Test()
{
//var clientId = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
//var clientSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
var tracer = new LoggingHandler(); // for tracing, needed only for debugging
//var api = new CdekClient(clientId, clientSecret, httpMessageHandler: tracer);
//var result = api.GetOrder("1234567890");
// for testing (using https://api.edu.cdek.ru/ as base URI)
var testApi = new CdekClient(httpMessageHandler: tracer);
var offices = testApi.GetDeliveryPointsAsync();
await foreach (var office in offices)
{
Console.WriteLine("{0}:\t{1}", office.Code, office.Location.Address);
}
Console.Beep();
}
}
}
License
MIT License
| 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 was computed. 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 is compatible. 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. |
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
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 | 144 | 12/31/2025 |
| 2.0.0 | 126 | 12/31/2025 |
| 1.7.1 | 119 | 12/30/2025 |
| 1.7.0 | 131 | 12/30/2025 |
| 1.6.1 | 370 | 2/23/2024 |
| 1.6.0 | 232 | 2/23/2024 |
| 1.5.0 | 257 | 12/25/2023 |
| 1.4.0 | 237 | 11/16/2023 |
| 1.3.0 | 229 | 11/10/2023 |
| 1.2.2 | 229 | 11/8/2023 |
| 1.2.1 | 206 | 11/8/2023 |
| 1.2.0 | 208 | 11/8/2023 |
| 1.1.2 | 244 | 11/2/2023 |
| 1.1.1 | 266 | 10/15/2023 |
| 1.1.0 | 243 | 10/4/2023 |
| 1.0.0 | 234 | 10/3/2023 |
Target platforms: .NET 8.0, .NET 10.0.
Added asynchronous methods.
Updated connection keys for test environment.
The ability to set the access token and its expiration time via the AccessToken and ExpiresIn properties has been added.