I have created a package which pricing id is 1. I want to add this service under the client id 1. Below is my code:
$api = new BlestaApi($url, $user, $key);
$data= array('vars'=>array('pricing_id'=>1,'client_id'=>1,'qty'=>1));
$response = $api->post("Services", "add", $data);
print_r($response->response());
var_dump($response->errors());
second last line output blank.
last line output bool(false).
This code was working for me before flushing database. I flushed old data because of testing records.
Please let me know what I am doing incorrect.
Thanks in advance!
-Anuranjan