Openstack REST API [closed]
why I can't get any respones ? here my get image function, when I call the function, it returns nothing
public function getImage() {
$url = 'http://10.125.3.18:9292/v2/images';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPGET, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $this->authToken());
$response = curl_exec($ch);
curl_close($ch);
$result = json_decode($response);
return $result;
}
are you getting any error? check whether you are getting through cli first.