AdresseLivraisonService :: AdresseLivraisons
The GET method, is used to retrieve data.
The list of necessary parameters for sending a query:- string ctnum.
Returns data as JSON, for use in PHP, you need to convert JSON in StdClass PHP (PHP function: json_decode ()).
Input parameters:
/CARAT
Example:
require (__DIR__ . '/service/WebServices100.php'); use services\WebServices100; $url = 'http://<Your ip>:<Your Port>/WebServices100/<Your environment>/AdresseLivraisonService/rest/AdresseLivraison/CARAT'; // Send requests to receive data $result = WebServices100::getData($url))); $response = json_decode($result);
Result:
Array
(
[0] => 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)/
)
[1] => stdClass Object
(
[Id] => 3
[NumeroTiers] => CARAT
[IdModeExpedition] => 1
[IdConditionLivraison] => 1
[Intitule] => Carat S.a.r.l
[Contact] => Yves Debanne
[Adresse] => 144, route de Vannes
[Complement] => BP 14
[CodePostal] => 44000
[Ville] => NANTES
[Region] =>
[Pays] => France
[Telephone] => 02 40 48 67 95
[Fax] =>
[Email] =>
[EstPrincipale] => 1
[Createur] => COLU
[DateModification] => /Date(1320188400000+0100)/
)
)