add history detail APIs
Merge pull request #2 from ysdy/history_detail

add history detail APIs