lob.dotnet 0.0.1

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

// Install lob.dotnet as a Cake Tool
#tool nuget:?package=lob.dotnet&version=0.0.1

lob.dotnet - the C# library for the Lob

The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors. <p> Looking for our previous documentation?

This C# SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.3.0
  • SDK version: 1.0.0
  • Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen For more information, please visit https://support.lob.com/

<a name="frameworks-supported"></a>

Frameworks supported

<a name="dependencies"></a>

Dependencies

The DLLs included in the package may not be the latest version. We recommend using NuGet to obtain the latest version of the packages:

Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes
Install-Package System.ComponentModel.Annotations

NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742. NOTE: RestSharp for .Net Core creates a new socket for each api call, which can lead to a socket exhaustion problem. See RestSharp#1406.

<a name="installation"></a>

Installation

Run the following command to generate the DLL

  • [Mac/Linux] /bin/sh build.sh
  • [Windows] build.bat

Then include the DLL (under the bin folder) in the C# project, and use the namespaces:

using lob.dotnet.Api;
using lob.dotnet.Client;
using lob.dotnet.Model;

<a name="packaging"></a>

Packaging

A .nuspec is included with the project. You can follow the Nuget quickstart to create and publish packages.

This .nuspec uses placeholders from the .csproj, so build the .csproj directly:

nuget pack -Build -OutputDirectory out lob.dotnet.csproj

Then, publish to a local feed or other host and consume the new package via Nuget as usual.

<a name="usage"></a>

Usage

To use the API client with a HTTP proxy, setup a System.Net.WebProxy

Configuration c = new Configuration();
System.Net.WebProxy webProxy = new System.Net.WebProxy("http://myProxyUrl:80/");
webProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
c.Proxy = webProxy;

<a name="getting-started"></a>

Getting Started

using System.Collections.Generic;
using System.Diagnostics;
using lob.dotnet.Api;
using lob.dotnet.Client;
using lob.dotnet.Model;

namespace Example
{
    public class Example
    {
        public static void Main()
        {

            Configuration config = new Configuration();
            config.BasePath = "https://api.lob.com/v1";
            // Configure HTTP basic authorization: basicAuth
            config.Username = "<<YOUR_LOB_API_KEY>>";

            var apiInstance = new AddressesApi(config);
            var addressEditable = new AddressEditable(); // AddressEditable | 

            try
            {
                // create
                Address result = apiInstance.create(addressEditable);
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling AddressesApi.create: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }

        }
    }
}

<a name="documentation-for-api-endpoints"></a>

Documentation for API Endpoints

All URIs are relative to https://api.lob.com/v1

Class Method HTTP request Description
AddressesApi create POST /addresses create
AddressesApi delete DELETE /addresses/{adr_id} delete
AddressesApi get GET /addresses/{adr_id} get
AddressesApi list GET /addresses list
BankAccountsApi create POST /bank_accounts create
BankAccountsApi delete DELETE /bank_accounts/{bank_id} delete
BankAccountsApi get GET /bank_accounts/{bank_id} get
BankAccountsApi verify POST /bank_accounts/{bank_id}/verify verify
BankAccountsApi list GET /bank_accounts list
BillingGroupsApi create POST /billing_groups create
BillingGroupsApi get GET /billing_groups/{bg_id} get
BillingGroupsApi update POST /billing_groups/{bg_id} update
BillingGroupsApi list GET /billing_groups list
CardOrdersApi create POST /cards/{card_id}/orders create
CardOrdersApi get GET /cards/{card_id}/orders get
CardsApi create POST /cards create
CardsApi delete DELETE /cards/{card_id} delete
CardsApi get GET /cards/{card_id} get
CardsApi update POST /cards/{card_id} update
CardsApi list GET /cards list
ChecksApi cancel DELETE /checks/{chk_id} cancel
ChecksApi create POST /checks create
ChecksApi get GET /checks/{chk_id} get
ChecksApi list GET /checks list
IntlAutocompletionsApi IntlAutocompletion POST /intl_autocompletions autocomplete
IntlVerificationsApi BulkIntlVerifications POST /bulk/intl_verifications verifyBulk
IntlVerificationsApi IntlVerification POST /intl_verifications verifySingle
LettersApi cancel DELETE /letters/{ltr_id} cancel
LettersApi create POST /letters create
LettersApi get GET /letters/{ltr_id} get
LettersApi list GET /letters list
PostcardsApi create POST /postcards create
PostcardsApi delete DELETE /postcards/{psc_id} cancel
PostcardsApi get GET /postcards/{psc_id} get
PostcardsApi list GET /postcards list
ReverseGeocodeLookupsApi ReverseGeocodeLookup POST /us_reverse_geocode_lookups lookup
SelfMailersApi create POST /self_mailers create
SelfMailersApi delete DELETE /self_mailers/{sfm_id} delete
SelfMailersApi get GET /self_mailers/{sfm_id} get
SelfMailersApi list GET /self_mailers list
TemplateVersionsApi create POST /templates/{tmpl_id}/versions create
TemplateVersionsApi delete DELETE /templates/{tmpl_id}/versions/{vrsn_id} delete
TemplateVersionsApi get GET /templates/{tmpl_id}/versions/{vrsn_id} get
TemplateVersionsApi update POST /templates/{tmpl_id}/versions/{vrsn_id} update
TemplateVersionsApi list GET /templates/{tmpl_id}/versions list
TemplatesApi create POST /templates create
TemplatesApi delete DELETE /templates/{tmpl_id} delete
TemplatesApi get GET /templates/{tmpl_id} get
TemplatesApi update POST /templates/{tmpl_id} update
TemplatesApi list GET /templates list
UsAutocompletionsApi UsAutocompletion POST /us_autocompletions autocomplete
UsVerificationsApi BulkUsVerifications POST /bulk/us_verifications verifyBulk
UsVerificationsApi UsVerification POST /us_verifications verifySingle
ZipLookupsApi ZipLookup POST /us_zip_lookups lookup

<a name="documentation-for-models"></a>

Documentation for Models

<a name="documentation-for-authorization"></a>

Documentation for Authorization

<a name="basicAuth"></a>

basicAuth

  • Type: HTTP basic authentication
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 netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.1.3 571 2/19/2024
1.1.2 222 1/18/2024
1.1.1 994 11/8/2023
1.1.0 16,120 1/17/2023
1.0.0 517 9/15/2022
0.0.1 389 9/9/2022

Beta Release