API Commands
[All Commands]

Command: Download_Document


Get document information and base64 encoded document that you have uploaded or generated on your account.

Input parameters:

string ssid Token from Login
int id Document ID, you can get it in response of Upload_Document or by List_Documents.

Output data:

string status ok | error
array data
 
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
string document base64 encoded document file

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,
    
'id' => 6473,
  ),
);

$response $client->__call("Download_Document",$params);
INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [id] => 6473 ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [id] => 6473 [name] => example.sk.pdf [type] => sk_transfer_request [filetype] => application/pdf [account] => demo [document] => JVBERi0xLj...QKJeLjz9MK ) )

API Manual - version from 2023-05-12 12:15:50