sparkmls-api
Version:
Spark MLS Api client
16 lines (11 loc) • 371 B
JavaScript
var ref = require('../apiRef.json');
var mycontroller = MyController.prototype;
function MyController(client) {
this.client = client;
}
mycontroller.listings = function GetListings(callback){
this.client.request('GET', ref.spark.api.rootPath + ref.spark.api.v1.my.listings.uri, function(res) {
callback(res);
});
};
module.exports = MyController;