getTimeSeries works with all valid resources at the expense of integers.

Added preliminary tests for only valid resources. Given that there's a
rate limit, these tests will definitely need to change to be a subset
of valid resources.