UNPKG

500px

Version:

A wrapper for the 500px.com API

19 lines (15 loc) 419 B
/** * Define the API */ var Photos = require('./photos'), Users = require('./users'), Blogs = require('./blogs'), API500px = function API500px(consumer_key) { this._configure(consumer_key); }; API500px.prototype._configure = function(consumer_key) { this.photos = new Photos(consumer_key); this.users = new Users(consumer_key); this.blogs = new Blogs(consumer_key); }; module.exports = API500px;