Martwana Posted September 23, 2013 Report Posted September 23, 2013 $key = '02****************************92f'; $user = 'dev'; $url = 'http://ilcloudservices.co.uk/blesta/api/'; $api = new BlestaApi($url, $user, $key); $response = $api->get("users", "get", array('user_id' => 1)); var_dump($response); -------------------------------------------------------------------------------------------------------- object(BlestaResponse)#2 (2) { ["raw":"BlestaResponse":private]=> bool(false) ["response_code":"BlestaResponse":private]=> int(0) } Why is it returning false? It was working fine the other day. Martin Quote
Tyson Posted September 23, 2013 Report Posted September 23, 2013 Per the source docs, if the user does not exist, boolean false is returned. Was that user deleted? Quote
Martwana Posted September 23, 2013 Author Report Posted September 23, 2013 Apologies, there was an underlying issue with the server itself not being able to resolve the url. All API's I use onsite had broke, which was how i found the problem. Quote
Tyson Posted September 23, 2013 Report Posted September 23, 2013 Ah, glad you were able to find the cause. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.