LogoLogo
API DocsTemplate GalleryProduct UpdatesContact Us
  • 📬Print & Mail
    • Ready to get started?
      • Pricing details
      • Fast Track Guide
    • Integrations
      • API integrations
        • Action IQ
        • Adobe Marketo Engage
        • Blueshift
        • Braze
        • Customer.io
        • Hubspot
        • Iterable
        • Jotform
        • Klayvio
        • Listrak
        • Make
        • Optimove
        • Salesforce
        • Salesforce Marketing Cloud
        • Segment
        • Simon Data
        • Zapier
      • No-code integrations
        • Agile CRM
        • Freshsales Suite
        • HubSpot
        • Microsoft Dynamics 365
        • Pipedrive
        • Salesforce
        • Salesforce Marketing Cloud
        • Zoho
      • Creative conversion tools
        • Figma plugin
    • Reaching your audience
      • Lob Audience
        • Target Audiences
        • Lookalike Audiences
        • Purchasing Audiences
      • All about addresses
      • Campaign audience guide
      • Additional Lob NCOA functionality
    • Designing mail creatives
      • Artboard layout
      • Creative formatting
        • PDF preflight checklist
        • Exporting PDFs from InDesign
        • Rendering errors
      • Mail piece design specs
        • Postcards
        • Self-Mailers
        • Letters
        • Letter envelopes
        • Letter add-ons
        • Checks
        • Snap packs
        • Booklets
        • Custom mail
      • Maximizing engagement
        • Dynamic personalization
          • Advanced templating (Handlebars)
            • Dynamic table tutorial
        • Adding QR codes
        • Short URLs
        • Informed Delivery
    • Building a mail strategy
      • One-time campaigns or triggered sends?
      • Choosing a delivery strategy
      • Managing mail settings
        • Using metadata
        • Declaring mail use type
      • USPS Promotions Through Lob
        • Tactile, Sensory & Interactive Promotion
        • Integrated Technology Promotion
        • First Class Mail Advertising Promotion
        • Add-Ons
      • Mailing class and postage
        • Certified Mail or Registered Mail
      • International mail
    • Send mail!
      • Launch your first campaign
      • Send mail via Print & Mail API
      • Send campaigns via the Campaigns API
      • USPS Secure Destruction
    • Getting data & results
      • Tracking your mail
      • Mail analytics
      • Measuring attribution
      • Using webhooks
      • Exporting mail data
  • 🏠Address Verification
    • Ready to start AV?
      • US AV product suite
      • International AV suite
      • AV pricing
    • AV best practices
    • AV integrations & libraries
      • AV Elements
      • Shopify App: Address Cleanser
    • AV FAQs
  • 💻Developer Docs
    • API quickstart guide
    • SDKs & libraries
    • Postman & similar tools
    • Error reference
    • Upgrading API version
    • Technical use case guides
      • Mass deletion setup
      • NCOA responses
      • Override cancellation window
      • Visibility of address changes
      • Ingesting tracking events with webhooks
  • 🔑Account Management
    • Signing into Lob
    • API keys
    • Account settings
      • Account-level data logs
    • User settings
    • Billing
      • Lob Credits
      • Lob Payment Methods
      • Sales Tax FAQ
        • Applicable sales tax by state
          • ​Subscriptions and Services
          • Lob Audience
          • Delivery Location for Operational Mail
          • Customer Billing Address for Operational Mail
          • Delivery Location for Marketing Mail
          • Postage Exemption
          • Professional Services
        • Tax exemption guide
  • 📞Resources
    • Getting support
    • Security & privacy
    • Data retention
    • Sustainability
    • Private labeling Lob
    • Direct mail glossary
Powered by GitBook
On this page
  • SDKs
  • Libraries
  • Address Elements

Was this helpful?

Export as PDF
  1. Developer Docs

SDKs & libraries

PreviousAPI quickstart guideNextPostman & similar tools

Last updated 1 year ago

Was this helpful?

SDKs

Currently, we have SDKs available for the following languages:

lob-typescript-sdk

Installation

Lob's TypeScript SDK can be installed through NPM: $ npm i @lob/lob-typescript-sdk

To build and install from the latest source: $ git clone git@github.com:lob/lob-typescript-sdk.git

$ npm install

Learn more at the lob-typescript-sdk repository on GitHub.

lob-php

Installation

The recommended way to install lob-php is through Composer.

Install Composer

curl -sS https://getcomposer.org/installer | php

Add Lob.com PHP client as a dependency

composer require lob/lob-php

After installing, you need to require Composer's autoloader:

require 'vendor/autoload.php';

Learn more at the lob-php repository on GitHub.

Installation

Include the following in your pom.xml for Maven:

 <dependencies>
  <dependency>
    <groupId>com.lob</groupId>
    <artifactId>lob-java</artifactId>
    <version>13.0.0</version>
  </dependency>
  ...
 </dependencies>

Gradle: compile 'com.lob:lob-java:13.0.0'

Learn more at the lob-java repository on GitHub.

Installation

You can use pip to install the package:

pip install lob

To initialize the wrapper, import lob and set the api_key:

import lob

lob.api_key = 'your-api-key'

Learn more at the lob-python repository on GitHub.

Installation

Add this line to your application's Gemfile: gem 'lob'

And then execute:

$ bundle

Or manually install it yourself:

$ gem install lob

Learn more at the lob-ruby repository on GitHub.

Installation

The package can be installed by adding :lob_elixir to your list of dependencies in mix.exs:

def deps do
   [
     {:lob_elixir, "~> 1.5.0"}
   ]
 end

Learn more at the lob-elixir repository on GitHub.

Don’t see your favorite language?

Let us know which language you’d like us to support next. Drop us an email.

Libraries

Address Elements

Address Elements works by targeting the input elements of your address form and using their values with Lob's verification and autocomplete functionality.

Registration

Create an account at Lob.com to obtain a Live Public API Key. The key is available in the Lob settings panel and uses the format, live_pub_*.

Usage

Embed the Lob Address Elements script immediately before the closing tag in the HTML containing your address form. The script will autodetect your form and its inputs.

<script src="https://cdn.lob.com/lob/address-elements/2.2.1/address-elements.min.js" data-lob-key="live_pub_xxx">

Learn more at the address-elements repository on GitHub.

This is a very lightweight component that uses the Lob Autocomplete API in order to simplify the process of adding in a search autocomplete bar or form. Check out the Autocomplete API for more configuration options in Lob documentation.

Installation

npm install --save @lob/react-address-autocomplete

Learn more at the react-address-autocomplete NPM repository.

lob-java

lob-python

lob-ruby

lob-elixir

lob-dotnet

lob-go

address-elements

react-address-autocomplete

💻