_sendFileDDD
(API version 2.0)int _sendFileDDD ( string kodf , string username , string pass , string FileName , string Note , string Content , int IdCar , int IdDriver , int Type )
Description
The function sends data from the tacho-card to the portal.
Categories
Parameters
- string kodf
- Company login code
- string username
- Login username
- string pass
- Login password
- string FileName
- name of file
- string Note
- note
- string Content
- file content encoded Base 64
Example of use in PHP:
$file=file_get_contents('test.csv');
$encoded=base64_encode($file);
... calling _sendFile - int IdCar
- vehicle Id
- int IdDriver
- driver id
- int Type
- type (from the dial)
Return value
1 - OK
mistakes:
-1 - User not logged in
-2 - User does not have user4 rights
-4 - invalid file name
-5 - The file does not have the extension .ddd or .esm
-6 - a file with a given name already exists in db
Examples
API version 2.0
$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl'); $return = $client->_sendFileDDD($kodf, $username, $pass, $FileName, $Note, $Content, $IdCar, $IdDriver, $Type);
Test
To test the function, enter parameters in form below and press Try it out button.