andre il y a 3 ans
Parent
commit
871d823c31
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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) {
     protected function doRequest($endpoint, $action, $data) {
         $data['key'] = $this->cwp7Token;
         $data['key'] = $this->cwp7Token;
         $data['action'] = $action;
         $data['action'] = $action;
+        $data['debug'] = 1;
         $ch = curl_init();
         $ch = curl_init();
         curl_setopt($ch, CURLOPT_URL, $this->cwp7URL . '/v1/' . $endpoint);
         curl_setopt($ch, CURLOPT_URL, $this->cwp7URL . '/v1/' . $endpoint);
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);