Пример #1
0
    def getTapRequest(self, query=""):
        tap = TAPManager()
        tap_url = self.__service_provider["tap_url"]
        tap.connect(url=tap_url)

        result = tap.sync_query(query=query)
        r = result.get_results()
        return r
Пример #2
0
    def getTapRequest(self, url, query=""):

        tap = TAPManager()
        tap_url = url
        tap.connect(url=tap_url)

        result = tap.sync_query(query=query)
        r = result.get_results()
        print("results", len(r))
        return r