updated pagination api to v2.
Merge pull request #212 from opf/fix/timelines_pagination

updated pagination api to v2.