1.1.1 • Published 6 years ago
realsavvy-package v1.1.1
realsavvy-package
RealSavvy API Package that can be used client or server side
API Docs
https://docs.realsavvy.com/reference
How To Use
Install Package
npm install realsavvy-packageCreating A Client
import { Client as RealSavvyClient } from 'realsavvy-package'
const client = new RealSavvyClient({token: 'jwt.access.token'});Querying for properties
client.properties.search({filter: {price: {max: 500000}}, page: {size: 8}}).then(response => {
console.log(response.data)
})Show a property
client.properties.show({complexId: 'hudson_gateway_association_of_realtors~24542612'}).then(response => {
console.log(response.data)
})Get share token for a user
const client = new RealSavvyClient({token: 'jwt.access.tokenForUser'});
client.shareTokenGet Agents For Given Site
client.agents.index({page: {size: 8}}).then(response => {
console.log(response.data)
})Show Agent
client.agents.show({id: 48}).then(response => {
console.log(response.data)
})How To Developer
Fork the repo and clone it down
Install dependies
npm install- Create your own branch for your changes
git checkout -b your-name/your-feature-or-fixMake your changes
Run tests
npm testGet tests green.
Build the package.
npx webpackCommit your changes to your branch and push to them to your fork.
Request PR