Socket
Socket
Sign inDemoInstall

sreality-client

Package Overview
Dependencies
9
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sreality-client

API Client for sreality.cz


Version published
Weekly downloads
2
Maintainers
1
Install size
4.15 MB
Created
Weekly downloads
 

Changelog

Source

v0.0.6 - 26.07.2020

Dependency upgrade due to vulnerabilities Web API return +1 records, ie: when requesting 50 items, API returns 51.

Readme

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

Last updated on 26 Jul 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc