FileService :: FichiersLiesDuDocument

The POST method, is used to retrieve data.

The list of necessary parameters for sending a query:

  • TypeDocument typeDocument,
  • string numeroDocument.

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

Input parameters:

/1/BC00102

Example:

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

use services\WebServices100;

$url = 'http://<Your ip>:<Your Port>/WebServices100/<Your environment>/FileService/rest/FichiersLiesDuDocument/1/BC00102';

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

$response = json_decode($result);

Result:

Array
(
    [0] => stdClass Object
        (
            [NumeroDocument] => BC00102
            [TypeDocument] => 1
            [Intitule] => 
            [NomFichier] => .\Multimedia\Default.xml
            [Id] => 3
            [Transmettre] => 0
            [TypeMime] => text\/xml
            [Createur] => COLU
            [DateModification] => /Date(1516023540000+0100)/
        )
    [1] => stdClass Object
        (
            [NumeroDocument] => BC00102
            [TypeDocument] => 1
            [Intitule] => Intitule de test
            [NomFichier] => .\Multimedia\tes!..._____tDoc.htm
            [Id] => 32
            [Transmettre] => 0
            [TypeMime] => text\/html
            [Createur] => COLU
            [DateModification] => /Date(1517236080000+0100)/
        )
    [2] => stdClass Object
        (
            [NumeroDocument] => BC00102
            [TypeDocument] => 1
            [Intitule] => Intitule de test
            [NomFichier] => .\Multimedia\tes!..._____tDoc1.htm
            [Id] => 33
            [Transmettre] => 0
            [TypeMime] => text\/html
            [Createur] => W100
            [DateModification] => /Date(1517236080000+0100)/
        )
    [3] => stdClass Object
        (
            [NumeroDocument] => BC00102
            [TypeDocument] => 1
            [Intitule] => Intitule de test
            [NomFichier] => .\Multimedia\tes!..._____tDoc2.htm
            [Id] => 34
            [Transmettre] => 0
            [TypeMime] => text\/html
            [Createur] => W100
            [DateModification] => /Date(1517236080000+0100)/
        )
)