_sendFileRoute
(API version 2.0)int _sendFileRoute ( string kodf , string username , string pass , string FileName , string FileDesc , string Content , int IdRoute )
Description
The function sends a file for transport.
Categories
Parameters
- string kodf
- Company login code
- string username
- Login username
- string pass
- Login password
- string FileName
- filename - eg image001.jpg
allowed formats "PDF", "JPG", "JPEG", "PNG", "GIF", "DOC", "DOCX", "XLS", "XLSX" - string FileDesc
- a short description of the file - for example, a scan of the contract for transport
- string Content
- content of file encoded Base 64
Example of use in PHP:
$file=file_get_contents('test.csv');
$encoded=base64_encode($file);
... calling _sendRouteFile - int IdRoute
- route Id
Return value
int
1 - OK
-1 - user not logged in
-2 - user does not have user right
-3 - file not saved
Examples
API version 2.0
$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl'); $return = $client->_sendFileRoute($kodf, $username, $pass, $FileName, $FileDesc, $Content, $IdRoute);
Test
To test the function, enter parameters in form below and press Try it out button.