API Commands
[All Commands]

Command: List_Documents


List documents uploaded or generated on your account.

Input parameters:

string ssid Token from Login

Output data:

string status ok | error
array data
 
array documents[] Array of document descriptions
int id Document ID
string name Filename
string type Type of the document
string filetype MIME type of the file
string account Owner username of the document
int orderid Order ID

PHP example:


<?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 ) ) ) )

API Manual - version from 2017-11-21 10:46:44