andre 3 years ago
parent
commit
517f30c317
1 changed files with 3 additions and 2 deletions
  1. 3 2
      api/cwp7/Admin.php

+ 3 - 2
api/cwp7/Admin.php

@@ -320,7 +320,7 @@ class cwp7_Admin {
         $data['key'] = $this->cwp7Token;
         $data['action'] = $action;
         $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_CUSTOMREQUEST, "POST");
         if(!$this->cwp7Secure) {
@@ -335,8 +335,9 @@ class cwp7_Admin {
             return array('error_msg' => $response);
         }; */
         curl_close($ch);
-        print_r($this->cwp7URL . '/v1/' . $endpoint);
+        print_r($this->cwp7URL . 'v1/' . $endpoint . PHP_EOL);
         print_r($data);
+        print_r($response);
         return $response;
     }
 }