From 2651394a60a48024a980ce1ef933f357aa466df8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A1ndor=20Holozsny=C3=A1k?= Date: Thu, 21 Mar 2024 15:31:09 +0100 Subject: [PATCH] docs: Example in the readme.md is fixed --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 948709a7f..38623c069 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ import java.util.List; import java.util.Map; public class CreateShipment { - public static void main(String[] args) { + public static void main(String[] args) throws EasyPostException { EasyPostClient client = new EasyPostClient(System.getenv("EASYPOST_API_KEY")); Map fromAddressMap = new HashMap(); @@ -82,7 +82,7 @@ public class CreateShipment { Shipment shipment = client.shipment.create(shipmentMap); - Shipment boughtShipment = client.shipment.buy(shipment.lowestRate(), shipment.getId()); + Shipment boughtShipment = client.shipment.buy(shipment.getId(), shipment.lowestRate()); System.out.println(boughtShipment.prettyPrint()); }