Tikweb Posted January 27, 2017 Report 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
Blesta Addons Posted January 27, 2017 Report Posted January 27, 2017 you should use getList instead of get . Paul and Michael 2 Quote
Tyson Posted January 28, 2017 Report 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. Blesta Addons and Michael 2 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.