Created a method to get perform an APIcall to the hudson API