What is the difference between history() and detailedHistory() API calls?

detailedHistory() is being deprecated. Whenever possible, use history().