gaijinpot-apartments
v0.0.3
Published
Simple read-only interface to http://apartments.gaijinpot.com/
Downloads
3
Readme
Gaijinpot Apartments
Simple read-only interface to http://apartments.gaijinpot.com/
Overview
This module allows you to query the gaijinpot apartments website for various information about apartments.
Installation
$ npm install gaijinpot-apartments
OR
$ git clone git://github.com/deoxxa/gaijinpot-apartments.git node_modules/gaijinpot-apartments
Usage
More documentation is pending, but take a look at this in the meantime.
#!/usr/bin/env node
var GaijinpotApartments = require("gaijinpot-apartments"),
client = new GaijinpotApartments("http://apartments.gaijinpot.com/", "rentals");
// Getting information about a specific listing
apartments.get(1234, function(err, res) {
if (err) {
return console.log(err);
}
console.log(JSON.stringify(res, null, 2));
});
// Performing a search
apartments.search({order: 1}, function(err, res) {
if (err) {
return console.log(err);
}
console.log(JSON.stringify(res, null, 2));
});
License
3-clause BSD. A copy is included with the source.
Contact
- GitHub (deoxxa)
- Twitter (@deoxxa)
- ADN (@deoxxa)
- Email ([email protected])