Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sreality-client

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sreality-client

API Client for sreality.cz

  • 0.0.5
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Sreality.cz

Javascript API client for the Sreality REST API.

Interface

House Collection

Parameters:

page = 1, pageSize = 5, regionType = 'municipality', regionId = 3468

Example:

const { fetchHouses } = require('sreality-client');

fetchHouses(1, 5, 'municipality', 3468).then((data) => {
    console.log('My Houses...', data);
});

Flat Collection

Parameters:

page = 1, pageSize = 5, regionType = 'municipality', regionId = 3468

Example:

const { fetchFlats } = require('sreality-client');

fetchFlats(1, 5, 'municipality', 3468).then((data) => {
    console.log('My Flats...', data);
});

Parcels Collection

Parameters:

page = 1, pageSize = 5, regionType = 'municipality', regionId = 3468

Example:

const { fetchParcels } = require('sreality-client');

fetchParcels(1, 5, 'municipality', 3468).then((data) => {
    console.log('My Parcels...', data);
});

Build

npm run build

Tests

Run all the tests suite:

npm test

Coverage

npm run test:coverage

Linting

npm run eslint

Disclaimer

This is not an official API. I am not affiliated with Sreality.cz in any way, and am not responsible for any damage that could be done with it.

I have only implemented very few functions that I need for a project.

I'd be happy to give up this library for an official and supported library.

I have built this library to retrieve properties from the REST API.

Keywords

FAQs

Package last updated on 09 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc