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
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?
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.
Tyson Posted September 23, 2013 Report Posted September 23, 2013 Ah, glad you were able to find the cause.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now