Update RestClient.php

set CURLOPT_RETURNTRANSFER to true