BanqueService :: GetById
The GET method, is used to retrieve data.
The list of necessary parameters for sending a query:
- int banqueId.
Returns data as JSON, for use in PHP, you need to convert JSON in StdClass PHP (PHP function: json_decode ()).
Input parameters:
?banqueId=1
Example:
require (__DIR__ . '/service/WebServices100.php'); use services\WebServices100; $url = 'http://<Your ip>:<Your Port>/WebServices100/<Your environment>/BanqueService/rest/BanqueById?banqueId=1'; // Send requests to receive data $result = WebServices100::getData($url, $json_data); $response = json_decode($result);
Result:
stdClass Object
(
[Id] => 1
[Abrege] => BEU
[CodeBic] => BEUFR542
[Intitule] => L'Européenne Ltd
[Interlocuteur] => Philippe LEGRAND
[Adresse] => 5 avenue Foch
[ComplementAdresse] =>
[CodePostal] => 75000
[Ville] => Paris
[Region] =>
[NomPays] => France
[Telephone] => 0145454545
[Telecopie] =>
[Email] => contactclient@beu.fr
[SiteInternet] =>
[Createur] => MOPA
[DateModification] => /Date(1360882800000+0100)/
)