From 51b53cfcc1b4c0f4d4c041b16bfc3bb726ccd399 Mon Sep 17 00:00:00 2001 From: Dmitry Mamontov Date: Tue, 2 Aug 2016 16:54:50 +0300 Subject: [PATCH] fix settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Проверьте внимательно методы , это не единственные ошибки --- lib/RetailCrm/ApiClient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/RetailCrm/ApiClient.php b/lib/RetailCrm/ApiClient.php index e8795a0..1b51ee3 100644 --- a/lib/RetailCrm/ApiClient.php +++ b/lib/RetailCrm/ApiClient.php @@ -912,9 +912,9 @@ class ApiClient } return $this->client->makeRequest( - sprintf('/delivery/generic/settings/%s/edit', $configuration['code']), + sprintf('/delivery/generic/setting/%s/edit', $configuration['code']), Client::METHOD_POST, - $configuration + array('configuration' => json_encode($configuration)) ); }