Skip to content

seedco/go-lob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

12c19f6 · Oct 29, 2019

History

35 Commits
Mar 27, 2018
Aug 30, 2017
Feb 17, 2015
Feb 17, 2015
Oct 29, 2019
Oct 29, 2019
Oct 29, 2019
Aug 30, 2017
Aug 30, 2017
Oct 29, 2019
Oct 29, 2019
Aug 30, 2017
Oct 29, 2019
Aug 28, 2018

Repository files navigation

go-lob

Lob.com API client in Go.

Install

Install with

go get github.com/seedco/go-lob

Use

Use by creating a Lob struct with NewLob, and calling the methods it offers.

// fill in your API key and user agent here
l := lob.NewLob(lob.BaseAPI, apiKey, userAgent)

testAddress := &Address{
  Name:           "Lobster Test",
  Email:          "lobtest@example.com",
  Phone:          "5555555555",
  AddressLine1:   "1005 W Burnside St", // Powell's City of Books, the best book store in the world.
  AddressCity:    "Portland",
  AddressState:   "OR",
  AddressZip:     "97209",
  AddressCountry: "US",
}

verify, err := l.VerifyAddress(testAddress)
// ...

You can see the full docs here.

Test

You can run the tests if you set the TEST_LOB_API_KEY environment variable, i.e.,

TEST_LOB_API_KEY=test_yourtestkeyhere go test .

License

Licensed under the MIT license. See LICENSE for more details.

About

Lob.com API client in Go.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages