src/Bigcommerce/Api/Client.php
public static function getCollection($path, $resource = 'Resource')
    {
        $response = self::connection()->get(self::$api_path . $path);

        return self::mapCollection($resource, $response);
    }
public static function getCollection($path, $resource = 'Resource')
    {
        $response = self::connection()->get(self::$api_path . $path);

        return self::mapCollection($resource, $response);
    }
public static function getCollection ( $ path , $ resource = 'Resource' ) { $ response = self :: connection ( ) -> get ( self :: $ api_path . $ path ) ; return self :: mapCollection ( $ resource , $ response ) ; }
Get a collection result from the specified endpoint.

@param string $path api endpoint
@param string $resource resource class to map individual items
@return mixed array|string mapped collection or XML string if useXml is true
Get a collection result from the specified endpoint .