Treehouse.getUserProfile()

Get a user's Treehouse profile information.

Usage

Hover over inputs/exits for more info.

var Treehouse = require('machinepack-treehouse');


// Get a user's Treehouse profile information.

Treehouse.getUserProfile({

username: 'chalkers',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// Treehouse profile not found.

notFound: function () {

 

},

// OK.

success: function () {

 

},

});

Inputs

username required

The Treehouse username.

'chalkers'

Exits

error

An unexpected error occurred.

notFound

Treehouse profile not found.

success

OK.