BanqueService :: Banques

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>/BanqueService/rest/Banques?pageNumber=1&rowsPerPage=2';

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

$response = json_decode($result);

Result:

Array
(
[0] => 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)/
)
[1] => stdClass Object
(
[Id] => 2
[Abrege] => BRD
[CodeBic] => BRDFR987
[Intitule] => Rivas & Duras
[Interlocuteur] => Gérard BACHON
[Adresse] => 1 rue Jean Jaurès
[ComplementAdresse] =>
[CodePostal] => 92000
[Ville] => Versailles
[Region] =>
[NomPays] => France
[Telephone] => 0145202323
[Telecopie] =>
[Email] => brdcontact@brd.fr
[SiteInternet] =>
[Createur] => MOPA
[DateModification] => /Date(1360882800000+0100)/
)
)