|
|
@@ -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;
|
|
|
}
|
|
|
}
|