Updated code to include http get call.