andre 3 лет назад
Родитель
Сommit
871d823c31
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      api/cwp7/Admin.php

+ 1 - 0
api/cwp7/Admin.php

@@ -396,6 +396,7 @@ class cwp7_Admin {
     protected function doRequest($endpoint, $action, $data) {
         $data['key'] = $this->cwp7Token;
         $data['action'] = $action;
+        $data['debug'] = 1;
         $ch = curl_init();
         curl_setopt($ch, CURLOPT_URL, $this->cwp7URL . '/v1/' . $endpoint);
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);