I'm having the similar issue, what type of data needs to be passed in the Session parameter?
The error I'm recieving is:
object(stdClass)#4 (1) { ["error"]=> object(stdClass)#3 (2) { ["message"]=> string(28) "An unexpected error occured." ["response"]=> string(25) "Parameter is not optional" } } Parameter is not optional
My code is as below:
$data = array(
'Session' => 123456,
'vars' => array(
'username' => $email,
'password' => $password,
'remember_me' => false,
'ip_address' => '1.1.1.1'
)
);
$response = $api->post("users", "login", $data);