def METHOD_NAME(query, params):
    if query_type not in _available_query_types:
        return params
    if username and password:
        params['auth'] = (username, password)
    params['url'] = search_url
    params['method'] = 'GET'
    params['data'] = dumps(_available_query_types[query_type](query))
    params['headers']['Content-Type'] = 'application/json'
    return params