all() публичный статический Метод

retrieve all refunds
public static all ( mixed $params = null, string $apiKey = null ) : mixed
$params mixed
$apiKey string
Результат mixed
Пример #1
0
<?php

require_once "../vendor/autoload.php";
\EasyPost\EasyPost::setApiKey('cueqNZUb3ldeWTNX7MU3Mel8UXtaAMUi');
try {
    // create refund
    $refund = \EasyPost\Refund::create(array("carrier" => "USPS", "tracking_codes" => "CJ123456789US,LN123456789US"));
    print_r($refund);
    // all
    $all = \EasyPost\Refund::all();
    print_r($all);
} catch (Exception $e) {
    echo "Status: " . $e->getHttpStatus() . ":\n";
    echo $e->getMessage();
    if (!empty($e->param)) {
        echo "\nInvalid param: {$e->param}";
    }
    exit;
}