DocumentService :: UpdateInfosLibresLigne

The POST method, is used to retrieve data.

The list of necessary parameters for sending a query:

  • int idLigne,
  • List<InfoLibre> infoLibresList.

Returns data as JSON, for use in PHP, you need to convert JSON in StdClass PHP (PHP function: json_decode ()).

Input parameters:

{"idLigne":255,
"infoLibresList":
[
{
"Name":"Colisage",
"Type":3,
"Size":0,
"EstCalculee":false,
"Value":16.000000
},
{
"Name":"Unité de colisage",
"Type":0,
"Size":21,
"EstCalculee":false,
"Value":"AA - AA - AA - AA - "
},
{
"Name":"Commentaires",
"Type":0,
"Size":69,
"EstCalculee":false,
"Value":"AA - AA - AA - AA - "
},
{
"Name":"TestTabledocLigne",
"Type":0,
"Size":21,
"EstCalculee":false,
"Value":"AA - AA - AA - AA - "
},
{
"Name":"testDate",
"Type":2,
"Size":0,
"EstCalculee":false,
"Value":"2018-03-31T00:00:00"
}
]
}

Example:

require(__DIR__ . '/service/DocumentService.php');

use services\DocumentService;
use services\WebServices100;

$url = 'http://<Your ip>:<Your Port>/WebServices100/<Your environment>/DocumentService/rest/UpdateInfosLibresLigne';

// add parameters
$data = new stdClass()
$data->idLigne= 255
...

$data = $document->getResponse();
$data_json = json_encode($data);

// Send requests to receive data
$result = WebServices100::getData($url, $data_json);

$response = json_decode($result);

Result:

BOOLEAN