def get_test_response(client, method, params):
    """
    Test the integration connection state
    :param client: instance of client to communicate with server
    :param method: Requests method to be used
    :param params: Parameters for requests
    :return: Test Response Success or Failure
    """
    ret_val = 'ok'
    payload = params
    taxii_url = r'/taxii/stix-data/v21/get'
    if params.get('token'):
        result = client.get_taxii(method, taxii_url, payload)
        if result.get('message') or False:
            ret_val = result
        elif not len(result):
            ret_val = "Failed to fetch feed!!"
    else:
        ret_val = 'Access token missing.'

    return ret_val