tcdent/php-restclient

Retrieve Body Information

Closed this issue · 2 comments

Hello , how I can't retrieve the only the body response?
I don't find how to do in your Documentation.

Hey,

You can access the response's body by doing just this :

$api = new RestClient([
    'base_url' => "http://vimeo.com/api/v2", 
    'format' => "php"
]);
$result = $api->get("tcdent/info"); // GET http://vimeo.com/api/v2/tcdent/info.php
var_dump($result->response);

Thanks for the contribution Kaijiro! ✌🏻️😎