def get_ladder(session, ladder_id, user_id=None, user_ids=None, start=<NUM_LIT:0>, limit=LADDER_RESULT_LIMIT):
params = {<EOL>'<STR_LIT:start>': start,<EOL>'<STR_LIT>': limit<EOL>}<EOL>if isinstance(ladder_id, str):<EOL><INDENT>ladder_id = lookup_ladder_id(ladder_id)<EOL><DEDENT>if limit > LADDER_RESULT_LIMIT:<EOL><INDENT>raise VooblyError('<STR_LIT>')<EOL><DEDENT>if user_ids:<EOL><INDENT>params['<STR_LIT>'] = '<STR_LIT:U+002C>'.join([str(uid) for uid in user_ids])<EOL><DEDENT>elif user_id:<EOL><INDENT>params['<STR_LIT>'] = user_id<EOL><DEDENT>resp = _make_request(session, LADDER_URL, ladder_id, params)<EOL>if user_id:<EOL><INDENT>if not resp:<EOL><INDENT>raise VooblyError('<STR_LIT>')<EOL><DEDENT>return resp[<NUM_LIT:0>]<EOL><DEDENT>return resp<EOL>
Get ladder.