コード例 #1
0
ファイル: all.php プロジェクト: laposta/laposta-api-php
<?php

require_once '../../lib/Laposta.php';
Laposta::setApiKey("JdMtbsMq2jqJdQZD9AHC");
// initialize list
$list = new Laposta_List();
try {
    // get all members from this list
    // $result will contain een array with the response from the server
    $result = $list->all();
    print '<pre>';
    print_r($result);
    print '</pre>';
} catch (Exception $e) {
    // you can use the information in $e to react to the exception
    print '<pre>';
    print_r($e);
    print '</pre>';
}