<?php$client = new SoapClient( null, array( "location" => "https://PRODUCTION/cmd.php", "uri" => "http://PRODUCTION/soap" ) );$params = array ( "data" => array ( "login" => "demo", "password" => "password", ));$response = $client->__call("Login",$params);$token = $response["data"]["ssid"];$params = array ( 'data' => array ( 'ssid' => $token, ),);$response = $client->__call("List_Documents",$params); INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [documents] => Array ( [0] => Array ( [id] => 6473 [name] => example.sk.pdf [type] => sk_transfer_request [filetype] => application/pdf [account] => demo [document] => JVBERi0xLj...QKJeLjz9MK ) [1] => Array ( [id] => 6475 [name] => passport.pdf [type] => identification_document [filetype] => application/pdf [account] => demo [document] => RLjJVi0xBE...ezLQMK9KJj [orderid] => 123456 ) ) ) )
<?php$client = new SoapClient( null, array( "location" => "https://PRODUCTION/cmd.php", "uri" => "http://PRODUCTION/soap" ) );$params = array ( "data" => array ( "login" => "demo", "password" => "password", ));$response = $client->__call("Login",$params);$token = $response["data"]["ssid"];$params = array ( 'data' => array ( 'ssid' => $token, ),);$response = $client->__call("List_Documents",$params);