AdresseLivraisonService :: AdresseLivraisonList
The GET method, is used to retrieve data.
The list of parameters is not mandatory to request:
- int pageNumber,
- int rowsPerPage.
Returns data as JSON, for use in PHP, you need to convert JSON in StdClass PHP (PHP function: json_decode ()).
Input parameters:
?pageNumber=1&rowsPerPage=2
Example:
require (__DIR__ . '/service/WebServices100.php'); use services\WebServices100; $url = 'http://<Your ip>:<Your Port>/WebServices100/<Your environment>/AdresseLivraisonService/rest/AdresseLivraison?pageNumber=1&rowsPerPage=2'; // Send requests to receive data $result = WebServices100::getData($url))); $response = json_decode($result);
Result:
Array
(
[0] => stdClass Object
(
[Id] => 1
[NumeroTiers] => BAGUES
[IdModeExpedition] => 1
[IdConditionLivraison] => 1
[Intitule] => Toto test2
[Contact] => TITI toto
[Adresse] => Rue de la liberation 17
[Complement] => boite 3
[CodePostal] => 3510
[Ville] => Dudelange
[Region] => Luxembourg
[Pays] => Luxembourg
[Telephone] => +352 26 31 32 51
[Fax] => +352 26 31 32 51
[Email] => info@proconsult.lu
[EstPrincipale] =>
[Createur] => COLU
[DateModification] => /Date(1443706440000+0200)/
)
[1] => stdClass Object
(
[Id] => 2
[NumeroTiers] => CARAT
[IdModeExpedition] => 1
[IdConditionLivraison] => 1
[Intitule] => Annexe Sté Carat
[Contact] =>
[Adresse] => 77, Rue du stade Mayol
[Complement] => B.P. 83
[CodePostal] => 44595
[Ville] => St Herbain Cedex
[Region] =>
[Pays] => France
[Telephone] => 02 41 47 67 99
[Fax] => 02 41 47 67 95
[Email] =>
[EstPrincipale] =>
[Createur] => COLU
[DateModification] => /Date(1320188400000+0100)/
)
)