![]() |
VOOZH | about |
dotnet add package Shippo --version 4.0.2
NuGet\Install-Package Shippo -Version 4.0.2
<PackageReference Include="Shippo" Version="4.0.2" />
<PackageVersion Include="Shippo" Version="4.0.2" />Directory.Packages.props
<PackageReference Include="Shippo" />Project file
paket add Shippo --version 4.0.2
#r "nuget: Shippo, 4.0.2"
#:package Shippo@4.0.2
#addin nuget:?package=Shippo&version=4.0.2Install as a Cake Addin
#tool nuget:?package=Shippo&version=4.0.2Install as a Cake Tool
<div align="left"> <a href="https://speakeasyapi.dev/"><img src="https://custom-icon-badges.demolab.com/badge/-Built%20By%20Speakeasy-212015?style=for-the-badge&logoColor=FBE331&logo=speakeasy&labelColor=545454" /></a> <a href="https://opensource.org/licenses/MIT"> <img src="https://img.shields.io/badge/License-MIT-blue.svg" style="width: 100px; height: 28px;" /> </a> </div>
dotnet add package Shippo
using Shippo;
using Shippo.Models.Components;
using Shippo.Models.Requests;
var sdk = new ShippoSDK(
apiKeyHeader: "<YOUR_API_KEY_HERE>",
shippoApiVersion: "2018-02-08");
var res = await sdk.Addresses.ListAsync(
page: 1,
results: 5,
shippoApiVersion: "2018-02-08");
// handle response
A parameter is configured globally. This parameter may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed.
For example, you can set SHIPPO-API-VERSION to "2018-02-08" at SDK initialization and then you do not have to pass the same value on calls to operations like List. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
The following global parameter is available.
| Name | Type | Required | Description |
|---|---|---|---|
| shippoApiVersion | string | String used to pick a non-default API version to use |
using Shippo;
using Shippo.Models.Components;
using Shippo.Models.Requests;
var sdk = new ShippoSDK(
apiKeyHeader: "<YOUR_API_KEY_HERE>",
shippoApiVersion: "2018-02-08");
var res = await sdk.Addresses.ListAsync(
page: 1,
results: 5,
shippoApiVersion: "2018-02-08");
// handle response
Handling errors in this SDK should largely match your expectations. All operations return a response object or thow an exception. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate type.
| Error Object | Status Code | Content Type |
|---|---|---|
| Shippo.Models.Errors.InitiateOauth2SigninResponseBody | 400 | application/json |
| Shippo.Models.Errors.InitiateOauth2SigninCarrierAccountsResponseBody | 401 | application/json |
| Shippo.Models.Errors.InitiateOauth2SigninCarrierAccountsResponseResponseBody | 404 | application/json |
| Shippo.Models.Errors.SDKException | 4xx-5xx | / |
using Shippo;
using Shippo.Models.Components;
using System;
using Shippo.Models.Errors;
using Shippo.Models.Requests;
var sdk = new ShippoSDK(
apiKeyHeader: "<YOUR_API_KEY_HERE>",
shippoApiVersion: "2018-02-08");
InitiateOauth2SigninRequest req = new InitiateOauth2SigninRequest() {
CarrierAccountObjectId = "<value>",
RedirectUri = "http://fine-cummerbund.biz",
};
try
{
var res = await sdk.CarrierAccounts.InitiateOauth2SigninAsync(req);
// handle response
}
catch (Exception ex)
{
if (ex is InitiateOauth2SigninResponseBody)
{
// handle exception
}
else if (ex is InitiateOauth2SigninCarrierAccountsResponseBody)
{
// handle exception
}
else if (ex is InitiateOauth2SigninCarrierAccountsResponseResponseBody)
{
// handle exception
}
else if (ex is Shippo.Models.Errors.SDKException)
{
// handle exception
}
}
You can override the default server globally by passing a server index to the serverIndex: number optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
| # | Server | Variables |
|---|---|---|
| 0 | https://api.goshippo.com |
None |
The default server can also be overridden globally by passing a URL to the serverUrl: str optional parameter when initializing the SDK client instance. For example:
This SDK supports the following security scheme globally:
| Name | Type | Scheme |
|---|---|---|
APIKeyHeader |
apiKey | API key |
To authenticate with the API the APIKeyHeader parameter must be set when initializing the SDK client instance. For example:
using Shippo;
using Shippo.Models.Components;
using Shippo.Models.Requests;
var sdk = new ShippoSDK(
apiKeyHeader: "<YOUR_API_KEY_HERE>",
shippoApiVersion: "2018-02-08");
var res = await sdk.Addresses.ListAsync(
page: 1,
results: 5,
shippoApiVersion: "2018-02-08");
// handle response
While we value open-source contributions to this SDK, this library is generated programmatically. Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Shippo:
| Package | Downloads |
|---|---|
|
FenixAlliance.ABS.Integrations.Shippo
Application Component for the Alliance Business Suite. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 5.0.0-beta.9 | 8,820 | 11/26/2024 | |
| 5.0.0-beta.8 | 130 | 11/20/2024 | |
| 5.0.0-beta.7 | 1,264 | 10/10/2024 | |
| 5.0.0-beta.4 | 1,143 | 7/15/2024 | |
| 5.0.0-beta.3 | 127 | 7/8/2024 | |
| 5.0.0-beta.2 | 261 | 6/26/2024 | |
| 5.0.0-beta.1 | 147 | 6/17/2024 | |
| 4.0.2 | 41,960 | 6/21/2024 | |
| 4.0.1 | 326 | 6/17/2024 | |
| 4.0.0 | 426 | 6/7/2024 | |
| 4.0.0-beta.1 | 148 | 6/7/2024 | |
| 3.3.0 | 85,055 | 2/1/2022 | 3.3.0 is deprecated because it is no longer maintained. |
| 3.2.0 | 7,568 | 4/26/2021 | 3.2.0 is deprecated because it is no longer maintained. |
| 3.1.1 | 1,127 | 4/9/2021 | 3.1.1 is deprecated because it is no longer maintained. |