Example #1
0
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
Example #2
0
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
Example #3
0
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
Example #4
0
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