AdresseLivraisonById

The GET method, is used to retrieve data.The list of necessary parameters for sending a query:

  • string ctnum,
  • string id.

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

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

use services\WebServices100;

$url = 'http://:/WebServices100//AdresseLivraisonService/rest/AdresseLivraison/CARAT/2';

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

$response = json_decode($result);
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)/
)