ArticleService :: ArticlesReference

The GET method, is used to retrieve data.

The list of necessary parameters for sending a query:
  • string reference.

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

Input parameters:

/BAAR01

Example:

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

use services\WebServices100;

$url = 'http://<Your ip>:<Your Port>/WebServices100/<Your environment>/ArticleService/rest/Articles/BAAR01';

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

$response = json_decode($result);

Result:

stdClass Object
(
[__type] => ArticleStandard:http://www.proconsult.lu/WebServices100
[Reference] => BAAR01
[Intitule] => Bague Argent
[CodeFamille] => BIJOUXARG
[TypeArticle] => 0
[TypeNomenclature] => 0
[TypeSuiviStock] => 2
[TypeEscompte] => 0
[UnitePoids] => 0
[PoidsNet] => 4.23
[PoidsBrut] => 15
[IdUniteVente] => 1
[DelaiLivraison] => 0
[Garantie] => 12
[PrixAchat] => 186
[PrixUnitaireNet] => 186
[PrixVente] => 372
[Coefficient] => 2.1
[Statistique1] => Automne/Hiver
[Statistique2] => Classique
[Statistique3] =>
[Statistique4] =>
[Statistique5] =>
[EstEnSommeil] =>
[Langue1] => Silver ring
[Langue2] =>
[CodeEDI] =>
[CodeBarres] => 21731006
[Photo] => .\Multimedia\BAAR01.png
[IdCatalogue1] => 5
[IdCatalogue2] => 6
[IdCatalogue3] => 7
[IdCatalogue4] => 0
[HorsStatistique] =>
[VenteAuDebit] =>
[NonImpression] =>
[Contremarque] =>
[FacturationPoids] =>
[FacturationForfait] =>
[Transfere] =>
[EstEnPrixTTTC] =>
[Publie] => 1
[InfosLibres] => Array
(
[0] => stdClass Object
(
[Name] => 1ère commercialisation
[Type] => 1
[Size] => 0
[EstCalculee] =>
[Value] => /Date(237074400000+0200)/
)
[1] => stdClass Object
(
[Name] => Marque commerciale
[Type] => 0
[Size] => 35
[EstCalculee] =>
[Value] => Bijoux d'Argentières
)
[2] => stdClass Object
(
[Name] => Pourcentage teneur en or
[Type] => 3
[Size] => 0
[EstCalculee] =>
[Value] => 0
)
[3] => stdClass Object
(
[Name] => Objectif Qtés vendues
[Type] => 3
[Size] => 0
[EstCalculee] =>
[Value] => 500
)
[4] => stdClass Object
(
[Name] => Objectif / Qtés vendues
[Type] => 3
[Size] => 0
[EstCalculee] =>
[Value] =>
)
[5] => stdClass Object
(
[Name] => infoLibreTable
[Type] => 0
[Size] => 21
[EstCalculee] =>
[Value] =>
)
)
[Createur] => COLU
[DateModification] => /Date(1538051100000+0200)/
)