Is this work?
I tried to execute this feature with your branch but it looks like it's not working. A time entry API requires "time_entry" key instead of "issue" key. 

http://www.redmine.org/projects/redmine/wiki/Rest_TimeEntries