def build_request(nQs, category, difficulty, token, q_type = 'any'):
    """[summary]
    
    Arguments:
        nQs {int} -- number of questions
        category {int} -- integer corresponding to category
        difficulty {str} -- "easy", "medium", or "hard"
    
    Keyword Arguments:
        q_type {str} -- ["multiple", "boolean", or "any"] (default: {'any'})
    
    Returns:
        [str] -- output to send to requests
    """
    if q_type == "any":
        s = f'https://opentdb.com/api.php?amount={nQs}&category={category}&difficulty={difficulty}&encode=base64&token={token}'
    else:
        s = f'https://opentdb.com/api.php?amount={nQs}&category={category}&difficulty={difficulty}&type={q_type}&encode=base64&token={token}'
    
    return s