def todaysCount(token): epoch = helper.epoch_start() append = '&afterTimestamp=%s' % (epoch) response = get(token, append) checkins = json.loads(response._content) count = len(checkins['response']['checkins']['items']) return count
def todaysCount(api_key): epoch = helper.epoch_start() params = '&from=%s' % (epoch) response = get(api_key, params) listens = json.loads(response._content) count = listens['recenttracks']['@attr']['total'] return int(count)