|
@@ -328,14 +328,7 @@ class cwp7_Admin {
|
|
|
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
|
|
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
|
|
|
curl_setopt($ch, CURLOPT_POST, 1);
|
|
curl_setopt($ch, CURLOPT_POST, 1);
|
|
|
$response = curl_exec($ch);
|
|
$response = curl_exec($ch);
|
|
|
-/* if(curl_getinfo($ch, CURLINFO_RESPONSE_CODE) != 200) {
|
|
|
|
|
- curl_close($ch);
|
|
|
|
|
- return array('error_msg' => $response);
|
|
|
|
|
- }; */
|
|
|
|
|
curl_close($ch);
|
|
curl_close($ch);
|
|
|
- print_r($this->cwp7URL . 'v1/' . $endpoint . PHP_EOL);
|
|
|
|
|
- print_r($data);
|
|
|
|
|
- print_r($response);
|
|
|
|
|
return $response;
|
|
return $response;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|