From 67cb418feae7490277f5e23101cc6085f1fabb12 Mon Sep 17 00:00:00 2001 From: Colin Hall Date: Fri, 29 May 2020 12:57:20 +0100 Subject: [PATCH] Update InteractsWithAPI.php Fix GetKeyForEndPoint error --- src/Traits/InteractsWithAPI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/InteractsWithAPI.php b/src/Traits/InteractsWithAPI.php index e0625e7..a6bc101 100644 --- a/src/Traits/InteractsWithAPI.php +++ b/src/Traits/InteractsWithAPI.php @@ -142,7 +142,7 @@ public function getKey() public function getKeyForEndPoint() { if($this->hasKey()){ - return '/'.$this->getEndPoint(); + return '/'.$this->getKey(); } return; }