private static function getItems($ids, $type)
    {
        $resultRCS = self::$client->request(
            'POST',
            self::BASEURL.'services/entreprise/rest/recherche/'.
            'resumeEntreprise?typeRecherche='.$type,
            [
                'json'    => $ids,
                'headers' => ['Content-Type' => 'text/plain'],
            ]
        );

        return json_decode($resultRCS->getBody())->items;
    }
private static function getItems($ids, $type)
    {
        $resultRCS = self::$client->request(
            'POST',
            self::BASEURL.'services/entreprise/rest/recherche/'.
            'resumeEntreprise?typeRecherche='.$type,
            [
                'json'    => $ids,
                'headers' => ['Content-Type' => 'text/plain'],
            ]
        );

        return json_decode($resultRCS->getBody())->items;
    }
private static function getItems ( $ ids , $ type ) { $ resultRCS = self :: $ client -> request ( 'POST' , self :: BASEURL . 'services/entreprise/rest/recherche/' . 'resumeEntreprise?typeRecherche=' . $ type , [ 'json' => $ ids , 'headers' => [ 'Content-Type' => 'text/plain' ] , ] ) ; return json_decode ( $ resultRCS -> getBody ( ) ) -> items ; }
Get detailed info on companies from API.

@param int[]  $ids  IDs to look for
@param string $type Type of search

@return array
Get detailed info on companies from API .