_setContainerPos
(API version 2.0)int _setContainerPos ( string kodf , string username , string pass , string postime , float fearthwidth , float fearthlength , string containerID , int action , int stav , int carid )
Description
The function stores the status of the container and its position.
Categories
Parameters
- string kodf
- Company login code
- string username
- Login username
- string pass
- Login password
- string postime
- date and time of position in GMT, format YYYY-MM-DD HH:MM:SS
- float fearthwidth
- latitude
- float fearthlength
- longitude
- string containerID
- Unique chip number of the container
- int action
- 1 - loaded empty
2 - unloading cargo
3 - loaded full
4 - Composition of the container - int stav
- 0 - Disconnected
1 - connected - int carid
- unique vehicle identifier, 0 = not to change
Return value
int
Examples
API version 2.0
$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl'); $return = $client->_setContainerPos($kodf, $username, $pass, $postime, $fearthwidth, $fearthlength, $containerID, $action, $stav, $carid);
Test
To test the function, enter parameters in form below and press Try it out button.