Added getURL method to get the API URL string from param array