Small random changes.
itemid should be integer.
New method get_history.