lob / lob-php

PHP Client for Lob API
https://lob.com
MIT License
67 stars 21 forks source link

Add support for bulk AV endpoints #116

Closed amaan-lob closed 3 years ago

amaan-lob commented 3 years ago

What Adds support to Lob's Elixir library to verify a list of US or International addresses.

amaan-lob commented 3 years ago

@amaan-lob Quick question, Does this have to be called with another array function? $this->intlAddress is already a variable that is created with an array function right? So could it just not be 'addresses' => $this->intlAddress ?

Double checking before I can use it in docs.

@vmangwani Arrays are actually maps in PHP but they can also be treated as regular arrays, per these docs. So we use the array function with $this->intlAddress to define a map, and wrap it in another array function when setting it to the addresses property to set it as a regular array. You can also see this in the docs for PHP that we use the array function to define the payload.

vmangwani commented 3 years ago

Got it. Thanks for confirming. LGTM