How can i pass the id variable into the api resquests callback function as the function only has three fixed arguments?
I mean i can't do this:
var id = 6;
request(url, function(err, resp, body, id) {
//using here the returned body and the id too..
}
and it won't let me add another argument, cause the real function is
request(url, function(err, resp, body){}
Regards,