Tikweb Posted January 27, 2017 Report Share Posted January 27, 2017 Can you help me what will be the correct line(that is line number 6 in my complete source code below), if i would like to show the all invoice data throughout the api, $response = $api->get("invoices", "get", array('user_id' => 1)); This is my complete source code below, require_once "blesta_api.php"; $user = "api_user"; $key = "api_key"; $url = "http://dev.cloudnordicadmin.com.tikweb.dk/api/"; $api = new BlestaApi($url, $user, $key); $response = $api->get("invoices", "get", array('user_id' => 1)); print_r($response->response()); print_r($response->errors()); Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted January 27, 2017 Report Share Posted January 27, 2017 you should use getList instead of get . Michael and Paul 2 Quote Link to comment Share on other sites More sharing options...
Tyson Posted January 28, 2017 Report Share Posted January 28, 2017 Take a look at the source docs. There is a ::getAll method that accepts a client_id rather than a user_id you have in your example. Michael and Blesta Addons 2 Quote Link to comment Share on other sites More sharing options...
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.