From 8d189ae54151d6debdb48ba3f13c69ce76948ee3 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Fri, 30 Dec 2022 10:50:14 -0300 Subject: [PATCH] fix(TM): List is now working again It was referencing the new memsource API url (v2), but list still uses v1. --- src/TM.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TM.php b/src/TM.php index 244322d..66fe8c8 100644 --- a/src/TM.php +++ b/src/TM.php @@ -27,7 +27,7 @@ class TM extends \BrunoFontes\Memsource\BaseApi */ public function list(array $queryParams = []): string { - $response = $this->fetchApi->fetch('get', $this->_url, $queryParams); + $response = $this->fetchApi->fetch('get', '/api2/v1/transMemories/', $queryParams); if ($this->hasError($response)) { throw new \Exception("Error listing TMs: " . $this->getError($response), 1); }