ShipEngine 3.0.0-beta.4

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

// Install ShipEngine as a Cake Tool
#tool nuget:?package=ShipEngine&version=3.0.0-beta.4&prerelease                

ShipEngine

ShipEngine .NET SDK

The official ShipEngine SDK for .NET

Nuget (with prereleases) GitHub

Build Status Coverage Status

OS Compatibility

Nuget Page

Quick Start

Install ShipEngine .NET SDK via the .NET CLI.

dotnet add package ShipEngine

The only configuration requirement is an API key.

using ShipEngineSDK;

var shipengine = new ShipEngine("___YOUR_API_KEY_HERE__");

Methods

  • CreateLabelFromRate - When retrieving rates for shipments using the GetRatesWithShipmentDetails method, the returned information contains a RateId property that can be used to purchase a label without having to refill in the shipment information repeatedly.
  • CreateLabelFromShipmentDetails - Purchase and print a label for shipment.
  • GetRatesWithShipmentDetails - Given some shipment details and rate options, this method returns a list of rate quotes.
  • ListCarriers - Returns a list of carrier accounts that have been connected through the ShipEngine dashboard.
  • TrackUsingLabelId - Track a package by its associated label ID.
  • TrackUsingCarrierCodeAndTrackingNumber - Track a package for a given carrier and tracking number.
  • ValidateAddresses - Indicates whether the provided addresses are valid. If the addresses are valid, the method returns a normalized version based on the standards of the country in which the address resides. If an address cannot be normalized, an error is returned.
  • VoidLabelWithLabelId - Void a label with its Label ID.
  • CreateManifests - Create a shipment manifest.

Contributing

Contributions, enhancements, and bug-fixes are welcome! Open an issue on GitHub and submit a pull request.

Building

To build the project locally on your computer:

  1. Clone this repo<br> git clone https://github.com/ShipEngine/shipengine-dotnet.git

  2. Install .NET 5.x

  3. Install dependencies<br> dotnet restore

  4. Build the code<br> dotnet build

  5. Format the code<br> dotnet format

  6. Run the tests<br> dotnet test<br><br> By default, the test project targets all supported frameworks, if your environment only supports a subset then you can specify in the CLI. <br><br> dotnet test -f net5.0

Generating from OpenAPI

To regenerate the SDK from the OpenAPI spec, you will first need to get the latest version of the spec. It can be downloaded from the online documentation and should be saved to ./generation/swagger.json. Then run npm run generate from the command line. This will regenerate all the API calls and models, but not docs or tests.

The templates for autogeneration were extracted using the command:

npx @openapitools/openapi-generator-cli author template -g csharp -o generation/templates

Release

Create a fork for your changes.

Update the Changelog with any relevant new features or bug fixes and modify the packageVersion property in the .openapitools.json file to match the new version.

In the ShipEngine.csproj file, update to the desired version (using semantic versioning) and push to your fork.

Run dotnet format

Create a pull request.

Once a member of the ShipEngine team reviews your PR and it's merged to main, the build pipeline will handle all the necessary github tags and nuget packaging and publishing.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on ShipEngine:

Package Downloads
Apsy.Elemental.ECommerce

Package Description

Apsy.Elemental.ShippingAddress

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0-beta.16 114 10/16/2024
3.0.0-beta.15 720 10/9/2024
3.0.0-beta.14 48 10/8/2024
3.0.0-beta.13 157 10/3/2024
3.0.0-beta.12 963 9/11/2024
3.0.0-beta.11 509 8/26/2024
3.0.0-beta.10 48 8/26/2024
3.0.0-beta.9 929 7/28/2024
3.0.0-beta.8 72 7/24/2024
3.0.0-beta.7 49 7/24/2024
3.0.0-beta.6 108 7/23/2024
3.0.0-beta.5 75 7/23/2024
3.0.0-beta.4 81 7/19/2024
3.0.0-beta.3 70 7/17/2024
3.0.0-beta.2 74 7/16/2024
3.0.0-beta.1 57 7/16/2024
2.3.4 125 11/12/2024
2.3.3 1,128 10/9/2024
2.3.2 1,706 9/12/2024
2.3.1 112 9/3/2024
2.3.0 121 8/26/2024
2.2.1 2,826 7/22/2024
2.2.0 112 7/16/2024
2.0.5 113 7/10/2024
2.0.4 1,084 7/2/2024
2.0.3 170 6/28/2024
2.0.2 115 6/28/2024
2.0.1 142 6/12/2024
2.0.0 1,802 6/5/2024
1.1.9 3,172 5/21/2024
1.1.8 19,888 4/22/2024
1.1.7 124 4/19/2024
1.1.6 506 3/21/2024
1.1.5 1,951 1/12/2024
1.1.3 2,548 10/3/2023
1.1.2 175 9/18/2023
1.1.1 5,008 8/7/2023
1.1.0 4,719 11/10/2022
1.0.7 2,582 11/1/2022
1.0.6 795 10/19/2022
1.0.5 588 9/23/2022
1.0.4 718 6/9/2022