Initial success talking to lob directly with my own client

This commit is contained in:
Eli Ribble 2026-04-16 22:41:43 +00:00
parent c0935c848b
commit 97ec0667a5
No known key found for this signature in database
2 changed files with 86 additions and 0 deletions

View file

@ -0,0 +1,26 @@
package main
import (
"context"
"log"
"os"
"github.com/Gleipnir-Technology/nidus-sync/lob"
)
func main() {
key := os.Getenv("LOB_API_KEY")
if key == "" {
log.Println("LOB_API_KEY is empty")
os.Exit(1)
}
client := lob.NewLob(key)
ctx := context.TODO()
_, err := client.AddressList(ctx)
if err != nil {
log.Printf("err: %v", err)
os.Exit(2)
}
}