UNPKG

sparkmls-api

Version:
16 lines (11 loc) 371 B
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;