XyloCode.ThirdPartyServices.Cdek 1.2.2

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package XyloCode.ThirdPartyServices.Cdek --version 1.2.2                
NuGet\Install-Package XyloCode.ThirdPartyServices.Cdek -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="XyloCode.ThirdPartyServices.Cdek" Version="1.2.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XyloCode.ThirdPartyServices.Cdek --version 1.2.2                
#r "nuget: XyloCode.ThirdPartyServices.Cdek, 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.
// Install XyloCode.ThirdPartyServices.Cdek as a Cake Addin
#addin nuget:?package=XyloCode.ThirdPartyServices.Cdek&version=1.2.2

// Install XyloCode.ThirdPartyServices.Cdek as a Cake Tool
#tool nuget:?package=XyloCode.ThirdPartyServices.Cdek&version=1.2.2                

CDEK API client library

An unofficial .NET full support client library for accessing the CDEK API v2.0.

Supported Platforms
  • .NET 6.0 LTS;
  • .NET 7.0.

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 XyloCode.ThirdPartyServices.Cdek;
using XyloCode.ThirdPartyServices.Cdek.Helpers;

namespace CdekTest
{
    internal class Program
    {
        static void Main(string[] args)
        {
            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.GetDeliveryPoints();

            Console.Beep();
            Console.ReadLine();
        }
    }
}

License

MIT 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 is compatible.  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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.
  • net7.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
1.6.1 129 2/23/2024
1.6.0 110 2/23/2024
1.5.0 138 12/25/2023
1.4.0 154 11/16/2023
1.3.0 133 11/10/2023
1.2.2 137 11/8/2023
1.2.1 120 11/8/2023
1.2.0 118 11/8/2023
1.1.2 151 11/2/2023
1.1.1 169 10/15/2023
1.1.0 147 10/4/2023
1.0.0 135 10/3/2023

Fixed a bug related to the ISO 8601 date and time format: YYYY-MM-DDThh:mm:ss±hhmm. Enabled GenerateDocumentationFile option.