Openstack REST API [closed]

asked 2014-07-21 04:52:35 -0600

dinar agustin gravatar image

why I can't get any respones ? here my get image function, when I call the function, it returns nothing

public function getImage() {

    $url = '';

    $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);

    $result = json_decode($response);
    return $result;
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by smaffulli
close date 2014-07-21 10:51:47.619980


are you getting any error? check whether you are getting through cli first.

SGPJ gravatar imageSGPJ ( 2014-07-21 05:38:23 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-07-21 07:13:25 -0600

dinar agustin gravatar image

updated 2014-07-21 10:52:38 -0600

smaffulli gravatar image

Actually, now I already found the problem, the token expired.

edit flag offensive delete link more


Search this site and read the documentation before posting new questions.

smaffulli gravatar imagesmaffulli ( 2014-07-21 10:52:26 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-07-21 04:52:35 -0600

Seen: 139 times

Last updated: Jul 21 '14