WinUP / rets-client

NodeJS RETS/DDF Client
MIT License
8 stars 11 forks source link
real-estate

NodeJS RETS/DDF Client

A RETS (Real Estate Transaction Standard) and DDF (Data Distribution Facility) client.

Forked from sbruno81/rets-client but totally rewritten by TypeScript.

Features

How to use

import { RetsClient, RetsVersion } from 'rets-ddf-client';

const client = new RetsClient({
    url: '...',
    username: '...',
    password: '...',
    version: RetsVersion.CREA_DDF
});

await client.login();
const listing = await client.search({
    format: RetsFormat.StandardXml,
    query: '...',
    searchType: '...',
    class: '...',
    culture: DdfCulture.EN_CA
});
const result = await client.getObjects({
    resource: '...',
    type: '...',
    contentId: '...',
    objectId: '1', // or not given for get all objects
    withLocation: false
});
await client.logout();