A RETS (Real Estate Transaction Standard) and DDF (Data Distribution Facility) client.
Forked from sbruno81/rets-client but totally rewritten by TypeScript.
- Search
- GetObject
import{RetsClient,RetsVersion}from'rets-ddf-client';constclient=newRetsClient({url: '...',username: '...',password: '...',version: RetsVersion.CREA_DDF});awaitclient.login();constlisting=awaitclient.search({format: RetsFormat.StandardXml,query: '...',searchType: '...',class: '...',culture: DdfCulture.EN_CA});constresult=awaitclient.getObjects({resource: '...',type: '...',contentId: '...',objectId: '1',// or not given for get all objectswithLocation: false});awaitclient.logout();