def _get_followed(username, limit=25, offset=0): q = HQry('users/{username}/follows/games') q.add_urlkw(keys.USERNAME, username) q.add_param(keys.LIMIT, limit, 25) q.add_param(keys.OFFSET, offset, 0) return q
def vod_token(video_id): q = HiddenApiQuery('vods/{vod}/access_token') q.add_urlkw(keys.VOD, video_id) q.add_param(keys.NEED_HTTPS, Boolean.TRUE) return q
def _check_follows(username, name): q = HQry('users/{username}/follows/games/isFollowing') q.add_urlkw(keys.USERNAME, username) q.add_param(keys.NAME, name) return q
def channel_token(channel): q = HiddenApiQuery('channels/{channel}/access_token') q.add_urlkw(keys.CHANNEL, channel) q.add_param(keys.NEED_HTTPS, Boolean.TRUE) return q