RealSavvy API Package that can be used client or server side
https://docs.realsavvy.com/reference
npm install realsavvy-package
import { Client as RealSavvyClient } from 'realsavvy-package'
const client = new RealSavvyClient({token: 'jwt.access.token'});
client.properties.search({filter: {price: {max: 500000}}, page: {size: 8}}).then(response => {
console.log(response.data)
})
client.properties.show({complexId: 'hudson_gateway_association_of_realtors~24542612'}).then(response => {
console.log(response.data)
})
const client = new RealSavvyClient({token: 'jwt.access.tokenForUser'});
client.shareToken
client.agents.index({page: {size: 8}}).then(response => {
console.log(response.data)
})
client.agents.show({id: 48}).then(response => {
console.log(response.data)
})
-
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-fix
-
Make your changes
-
Run tests
npm test
-
Get tests green.
-
Build the package.
npx webpack
-
Commit your changes to your branch and push to them to your fork.
-
Request PR