TiersService :: SalariesList

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=3

Example:

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

use services\WebServices100;

$url = 'http://<Your ip>:<Your Port>/WebServices100/<Your environment>/TiersService/rest/Salaries?pageNumber=1&rowsPerPage=3';

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

$response = json_decode($result);

Result:

Array
(
[0] => stdClass Object
(
[TypeTiers] => 2
[NumeroTiers] => BRILLE
[NumeroTiersPayeur] => BRILLE
[IdCategorieComptable] => 2
[IdCategorieTarifaire] => 2
[IdModeleReglement] => 0
[Intitule] => bbbbbbbbbbbbb
[Qualite] => test1
[Abrege] => BRILLE Carmen
[Contact] => test2
[CompteCollectif] => 421LYON
[Adresse] => toto
[Complement] => toto
[CodePostal] => toto
[Ville] => toto
[Region] => toto
[Pays] => toto
[Telephone] => toto
[Fax] => toto
[Email] => toto
[SiteWeb] => toto
[NumeroSiret] => toto
[NumeroTva] => toto
[CodeEdi] => toto
[CodeNAF] =>
[Commentaire] => toto
[Langue] => 0
[EstEnSommeil] =>
[IdDepot] => 0
[NumeroCentraleAchat] =>
[CessionCreance] =>
[EncoursAutorise] => 0
[IdRisque] => 1
[ModeControleEnCours] => 0
[AutomatiserEcritureMultiEcheances] =>
[AutorisationLettrageAutomatique] => 1
[ExclureRappelsReleve] =>
[Facebook] =>
[LinkedIn] =>
[InfosLibres] => Array
(
[0] => stdClass Object
(
[Name] => Date création société
[Type] => 2
[Size] => 0
[EstCalculee] =>
[Value] =>
)



[1] => stdClass Object
(
[Name] => Capital social
[Type] => 3
[Size] => 0
[EstCalculee] =>
[Value] =>
)



[2] => stdClass Object
(
[Name] => Actionnaire Pal
[Type] => 0
[Size] => 69
[EstCalculee] =>
[Value] =>
)



[3] => stdClass Object
(
[Name] => Score Banque de France
[Type] => 0
[Size] => 14
[EstCalculee] =>
[Value] =>
)



[4] => stdClass Object
(
[Name] => Total points fidélité
[Type] => 3
[Size] => 0
[EstCalculee] => 1
[Value] =>
)



[5] => stdClass Object
(
[Name] => Points fidélité restants
[Type] => 3
[Size] => 0
[EstCalculee] => 1
[Value] =>
)



[6] => stdClass Object
(
[Name] => Fin validité carte fidélité
[Type] => 1
[Size] => 0
[EstCalculee] =>
[Value] =>
)



[7] => stdClass Object
(
[Name] => Date négociation règlement
[Type] => 2
[Size] => 0
[EstCalculee] =>
[Value] =>
)



[8] => stdClass Object
(
[Name] => testTableCompteT
[Type] => 0
[Size] => 21
[EstCalculee] =>
[Value] =>
)



)



[Createur] => MA30
[DateModification] => /Date(1458821100000+0100)/
[ExclureTraitementMarketing] =>
[GDPRActif] =>
[AssuranceCredit] => 0
)



[1] => stdClass Object
(
[TypeTiers] => 2
[NumeroTiers] => CAMET
[NumeroTiersPayeur] => CAMET
[IdCategorieComptable] => 1
[IdCategorieTarifaire] => 1
[IdModeleReglement] => 0
[Intitule] => Camet Jean
[Qualite] => Monsieur
[Abrege] => Camet Jean
[Contact] =>
[CompteCollectif] => 421PARI
[Adresse] => 36, rue des Berlingots
[Complement] =>
[CodePostal] => 75016
[Ville] => Paris
[Region] =>
[Pays] => France
[Telephone] => 0142200389
[Fax] =>
[Email] =>
[SiteWeb] =>
[NumeroSiret] =>
[NumeroTva] =>
[CodeEdi] =>
[CodeNAF] => 46.69B
[Commentaire] =>
[Langue] => 1
[EstEnSommeil] =>
[IdDepot] => 0
[NumeroCentraleAchat] =>
[CessionCreance] =>
[EncoursAutorise] => 0
[IdRisque] => 1
[ModeControleEnCours] => 0
[AutomatiserEcritureMultiEcheances] =>
[AutorisationLettrageAutomatique] => 1
[ExclureRappelsReleve] =>
[Facebook] =>
[LinkedIn] =>
[InfosLibres] => Array
(
[0] => stdClass Object
(
[Name] => Date création société
[Type] => 2
[Size] => 0
[EstCalculee] =>
[Value] =>
)



[1] => stdClass Object
(
[Name] => Capital social
[Type] => 3
[Size] => 0
[EstCalculee] =>
[Value] =>
)



[2] => stdClass Object
(
[Name] => Actionnaire Pal
[Type] => 0
[Size] => 69
[EstCalculee] =>
[Value] =>
)



[3] => stdClass Object
(
[Name] => Score Banque de France
[Type] => 0
[Size] => 14
[EstCalculee] =>
[Value] =>
)



[4] => stdClass Object
(
[Name] => Total points fidélité
[Type] => 3
[Size] => 0
[EstCalculee] => 1
[Value] =>
)



[5] => stdClass Object
(
[Name] => Points fidélité restants
[Type] => 3
[Size] => 0
[EstCalculee] => 1
[Value] =>
)



[6] => stdClass Object
(
[Name] => Fin validité carte fidélité
[Type] => 1
[Size] => 0
[EstCalculee] =>
[Value] =>
)



[7] => stdClass Object
(
[Name] => Date négociation règlement
[Type] => 2
[Size] => 0
[EstCalculee] =>
[Value] =>
)



[8] => stdClass Object
(
[Name] => testTableCompteT
[Type] => 0
[Size] => 21
[EstCalculee] =>
[Value] =>
)



)



[Createur] => MA30
[DateModification] => /Date(1458829980000+0100)/
[ExclureTraitementMarketing] =>
[GDPRActif] =>
[AssuranceCredit] => 0
)



[2] => stdClass Object
(
[TypeTiers] => 2
[NumeroTiers] => CHEVALIER
[NumeroTiersPayeur] => CHEVALIER
[IdCategorieComptable] => 1
[IdCategorieTarifaire] => 1
[IdModeleReglement] => 0
[Intitule] => Chevalier Eric
[Qualite] => Assistant achat
[Abrege] => Chevalier Eric
[Contact] =>
[CompteCollectif] => 421METZ
[Adresse] => 11, rue Gastor
[Complement] =>
[CodePostal] => 57000
[Ville] => Metz
[Region] =>
[Pays] => France
[Telephone] => 03 87 14 96 88
[Fax] =>
[Email] =>
[SiteWeb] =>
[NumeroSiret] =>
[NumeroTva] =>
[CodeEdi] =>
[CodeNAF] =>
[Commentaire] =>
[Langue] => 2
[EstEnSommeil] =>
[IdDepot] => 0
[NumeroCentraleAchat] =>
[CessionCreance] =>
[EncoursAutorise] => 0
[IdRisque] => 1
[ModeControleEnCours] => 0
[AutomatiserEcritureMultiEcheances] =>
[AutorisationLettrageAutomatique] => 1
[ExclureRappelsReleve] =>
[Facebook] =>
[LinkedIn] =>
[InfosLibres] => Array
(
[0] => stdClass Object
(
[Name] => Date création société
[Type] => 2
[Size] => 0
[EstCalculee] =>
[Value] =>
)



[1] => stdClass Object
(
[Name] => Capital social
[Type] => 3
[Size] => 0
[EstCalculee] =>
[Value] =>
)



[2] => stdClass Object
(
[Name] => Actionnaire Pal
[Type] => 0
[Size] => 69
[EstCalculee] =>
[Value] =>
)



[3] => stdClass Object
(
[Name] => Score Banque de France
[Type] => 0
[Size] => 14
[EstCalculee] =>
[Value] =>
)



[4] => stdClass Object
(
[Name] => Total points fidélité
[Type] => 3
[Size] => 0
[EstCalculee] => 1
[Value] =>
)



[5] => stdClass Object
(
[Name] => Points fidélité restants
[Type] => 3
[Size] => 0
[EstCalculee] => 1
[Value] =>
)



[6] => stdClass Object
(
[Name] => Fin validité carte fidélité
[Type] => 1
[Size] => 0
[EstCalculee] =>
[Value] =>
)



[7] => stdClass Object
(
[Name] => Date négociation règlement
[Type] => 2
[Size] => 0
[EstCalculee] =>
[Value] =>
)



[8] => stdClass Object
(
[Name] => testTableCompteT
[Type] => 0
[Size] => 21
[EstCalculee] =>
[Value] =>
)



)



[Createur] => MA30
[DateModification] => /Date(1458829980000+0100)/
[ExclureTraitementMarketing] =>
[GDPRActif] =>
[AssuranceCredit] => 0
)



)