getHandle( "/v1/cash" ); $msg->setData( $ch, null ); $response = $msg->sendGet($ch); if ($response === FALSE) { die(curl_error($ch)); } echo "response = ".$response."\n"; } catch(Exception $e) { echo $e->getMessage(); // get error message echo $e->getCode(); // get error code } ?>