add ts parameter to api methods
Merge pull request #33 from shawnps/master

add ts to parameters