All Projects → goshippo → shippo-csharp-client

goshippo / shippo-csharp-client

Licence: Apache-2.0 license
Shipping API C# library (USPS, FedEx, UPS and more)

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to shippo-csharp-client

php-tracking-urls
Converts package tracking numbers into URLs (UPS, FedEx, USPS, and more)
Stars: ✭ 47 (-9.62%)
Mutual labels:  ups, dhl, fedex, shipping-api, usps
ShippingRates
.NET wrapper to UPS, FedEx, USPS and DHL shipping rates APIs
Stars: ✭ 23 (-55.77%)
Mutual labels:  ups, dhl, fedex, usps
tracking-number-validation
A simple way to validate tracking number for the following couriers.
Stars: ✭ 22 (-57.69%)
Mutual labels:  ups, fedex, usps
roulier
API for package delivery
Stars: ✭ 18 (-65.38%)
Mutual labels:  ups, carriers
purplship-dashboard
The Open Source Shipping dashboard for karrio
Stars: ✭ 57 (+9.62%)
Mutual labels:  shipping-api, shipping-label
shipengine-openapi
The official OpenAPI 3.0 definitions for ShipEngine™
Stars: ✭ 13 (-75%)
Mutual labels:  shipping-api, shipping-label
java-demo
快递100API-Java快递查询接口主要应用在电商商城、ERP系统商、WMS系统商、独立站电商卖家、银行等企业。本Java快递查询接口目录提供:快递单号查询API接口、快递电子面单接口、寄快递接口、同城配送接口、快递地图跟踪接口等Java demo。接入只需要跟随Java快递查询接口示例即可,如需帮助,请点击下方官网链接,官网技术人员会免费帮助您接入接口。快递100API开放平台与国内外1200家快递公司合作提供快递单号查询API接口,快递电子面单接口,寄快递接口,快递地图跟踪接口等电商运营必备的物流快递工具.
Stars: ✭ 164 (+215.38%)
Mutual labels:  shipping-api
ATtiny13-TinyUPS
Uninterruptible Power Supply
Stars: ✭ 92 (+76.92%)
Mutual labels:  ups
python-nut2
Communicate with Network UPS Tools servers from Python.
Stars: ✭ 30 (-42.31%)
Mutual labels:  ups
ballotnav
A repository for HackforLA's BallotNav project
Stars: ✭ 21 (-59.62%)
Mutual labels:  usps
utility-scripts-for-freenas-and-vmware-esxi
All-In-One utility scripts for FreeNAS and VMware ESXi
Stars: ✭ 59 (+13.46%)
Mutual labels:  ups
MMM-ShipmentTracking
Shipment Tracking Module for MagicMirror²
Stars: ✭ 24 (-53.85%)
Mutual labels:  dhl
usps-api
Python Wrapper for the USPS API 🚚 📦
Stars: ✭ 52 (+0%)
Mutual labels:  usps
ups-telegraf
Get data from USB-connected UPS with Telegraf
Stars: ✭ 21 (-59.62%)
Mutual labels:  ups
ntUPSd
Network UPS Tools upsd Compatible Server for Windows
Stars: ✭ 17 (-67.31%)
Mutual labels:  ups
Laravel-UPS-Api
A small Laravel's wrapper for the PHP UPS API library
Stars: ✭ 29 (-44.23%)
Mutual labels:  ups
usps-collection-boxes
US Postal Service collection box locations.
Stars: ✭ 21 (-59.62%)
Mutual labels:  usps

CircleCI

Shippo C# API wrapper

Shippo is a shipping API that connects you with multiple shipping carriers (such as USPS, UPS, DHL, Canada Post, Australia Post, UberRUSH and many others) through one interface.

Print a shipping label in 10 mins using our default USPS and DHL Express accounts. No need to register for a carrier account to get started.

You will need to register for a Shippo account to use the Shippo API. It's free to sign up, free to use the API. Only pay to print a live label, test labels are free.

Install Manually

To manually include the code in a project of your own, just add the project to your solution, and then link it in the compiler. Shippo get's its packages via NuGet. The required packages are json.NET, and NUnit for testing.

To load the code into your Visual Studio IDE or Xamarin Studio IDE, click "File --> Open" and then locate the solution file within the root directory of this folder.

Running the Test Cases / Example

To run the test cases, right click the ShippoTesting project and then click "Run Item".

  • A prerequisite to running the test cases is editing the file ShippoTest.cs with your appropriate authorization token.

To run the example code, right click the ShippoExample project and then click "Run Item".

  • A prerequisite to running the example is editing the file Example.cs with your appropriate authorization token.

Example code can be found in the ShippoExample project, in the file Example.cs.

A Brief Example

For convenience, a brief example to create, get, and list all parcels can be found below (substitute your own Shippo token):

    using System;
    using System.Collections;
    using System.Collections.Generic;
    using Shippo;
    using Newtonsoft.Json;

    namespace ShippoExample {
        class Example {
            static void Main (string [] args)
            {
                APIResource resource = new APIResource (“<Your Shippo Token>“);

                // Hash table of properties
                Hashtable parameters = new Hashtable ();
                parameters.Add("length", "5");
                parameters.Add("width", "5");
                parameters.Add("height", "5");
                parameters.Add("distance_unit", "cm");
                parameters.Add("weight", "2");
                parameters.Add("mass_unit", "lb");
                parameters.Add("template", "");
                parameters.Add("metadata", "Customer ID 123456");

                // Create Parcel
                Parcel parcel = resource.CreateParcel (parameters);
                Console.WriteLine (parcel.Length);

                // Get Parcel
                Parcel parcelRetrieved = resource.RetrieveParcel ((string) parcel.ObjectId);
                Console.WriteLine (parcelRetrieved.DistanceUnit);

                // All Parcels
                parameters = new Hashtable ();
                parameters.Add ("results", "2");
                parameters.Add ("page", "1");

                var parcels = resource.AllParcels(parameters);
                Console.WriteLine (parcels.Data.Count);

            }
        }
    }

Wrapper Functionality Available

To see all the possible methods and objects look in the project Shippo. In this project you'll see the definitions for every type of object you can create through the API.

A particularly important file is APIResource.cs, this file contains the code responsible for making requests. Also contained within this file are all the methods for generating different type of API objects. Each object's methods are contained within a region tag for convenient navigation. For example, the Parcel's methods are contained within:

        #region Parcel
        /* Parcel Code */
        #endregion

Outside of APIResource.cs, the other code relevant to Parcels is contained within Parcel.cs. This includes directives for JSON encoding parameters, and getters and setters necessary for deserialization. This paradigm is consistent for every API object throughout.

Documentation

Please see https://goshippo.com/docs for up-to-date documentation.

About Shippo

Connect with multiple different carriers, get discounted shipping labels, track parcels, and much more with just one integration. You can use your own carrier accounts or take advantage of our discounted rates with the USPS and DHL Express. Using Shippo makes it easy to deal with multiple carrier integrations, rate shopping, tracking and other parts of the shipping workflow. We provide the API and dashboard for all your shipping needs.

Supported Features

The Shippo API provides in depth support of carrier and shipping functionalities. Here are just some of the features we support through the API:

  • Shipping rates & labels
  • Tracking for any shipment with just the tracking number
  • Batch label generation
  • Multi-piece shipments
  • Manifests and SCAN forms
  • Customs declaration and commercial invoicing
  • Address verification
  • Signature and adult signature confirmation
  • Consolidator support including:
    • DHL eCommerce
    • UPS Mail Innovations
    • FedEx Smartpost
  • Additional services: cash-on-delivery, certified mail, delivery confirmation, and more.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].