/**
 * @author  Hamza Waqas <hamzawaqas@live.com>
 * @since   1/14/14
 */

(function() {

    var _ = require('lodash');

    var Main = function(apiKey) {
        var _services = ['name', 'search', 'thumbnail']
            , Inherits = require('./inherits')
            , self = this;

        // Make some configuration;
        this.options = {
            api_url: "http://api.pipl.com/search/v4/",
            apiKey: apiKey
        };

        _.forEach(_services, function(service) {
            module.exports[service] = require(__dirname + '/services/' + service)(Inherits, self.options);
        });

        return module.exports;
    }.bind(this);

    module.exports = Main;
}).call(this);
/**
 * @author  Hamza Waqas <hamzawaqas@live.com>
 * @since   1/14/14
 */

(function() {

    var _ = require('lodash');

    var Main = function(apiKey) {
        var _services = ['name', 'search', 'thumbnail']
            , Inherits = require('./inherits')
            , self = this;

        // Make some configuration;
        this.options = {
            api_url: "http://api.pipl.com/search/v5/",
            apiKey: apiKey
        };

        _.forEach(_services, function(service) {
            module.exports[service] = require(__dirname + '/services/' + service)(Inherits, self.options);
        });

        return module.exports;
    }.bind(this);

    module.exports = Main;
}).call(this);

Upgrade from v4 to v5
Upgrade from v4 to v5