function getUserProfile(context, user) {
// create a new request (as an example)
var request = context.createRequest("User Profile", "GET", "http://api.example.com/profiles/" + user);
// log to the console
if (request == undefined) {
console.error("Unable to get profile:", user);
}
}