1 | <?php |
||
9 | class LobController extends Controller |
||
10 | { |
||
11 | const ZIPCODE = '10007'; |
||
12 | /** |
||
13 | * LOB API KEY |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $apikey; |
||
17 | |||
18 | /** |
||
19 | * Instance of Lob |
||
20 | * @var object |
||
21 | */ |
||
22 | protected $lob; |
||
23 | |||
24 | /** |
||
25 | * Initialize Lob |
||
26 | */ |
||
27 | public function __construct() |
||
32 | |||
33 | /** |
||
34 | * Get all delivery routes for this zip code |
||
35 | * @param string $zipcode |
||
36 | * @return array |
||
37 | */ |
||
38 | private function getRoutes($zipcode) |
||
44 | |||
45 | /** |
||
46 | * Return all data to the Lob API dashboard |
||
47 | * @return mixed |
||
48 | */ |
||
49 | public function getPage() |
||
55 | } |
||
56 |