Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 967 Bytes

Labels.md

File metadata and controls

28 lines (21 loc) · 967 Bytes

High-Level Examples (Labels)

Source Code: LabelsApi

Create a Label (API Reference)

$customerUrl = "https://api-sandbox.dwolla.com/customers/AB443D36-3757-44C1-A1B4-29727FB3111C";
$customersApi = new DwollaSwagger\CustomersApi($apiClient);

$label = $customersApi->createLabel([
  "amount" => [
    "currency" => "USD",
    "value" => "10.00"
  ]
], $customerUrl);
$label; # => "https://api-sandbox.dwolla.com/labels/375c6781-2a17-476c-84f7-db7d2f6ffb31"

Retrieve a Label (API Reference)

$labelUrl = "https://api-sandbox.dwolla.com/labels/7e042ffe-e25e-40d2-b86e-748b98845ecc";
$labelsApi = new DwollaSwagger\LabelsApi($apiClient);

$label = $labelsApi->getLabel($labelUrl);
$label->id; # => "7e042ffe-e25e-40d2-b86e-748b98845ecc"