Example #1
0
    def invoke_match_list_request(self, server='test09-v1', provider='rb', sport='FOOTBALL'):
        request = RequestDetails(
            uri=self.REQUEST_URI.format(self.HOSTS[server])
            , method=self.REQUEST_METHOD
            , params=self.REQUEST_PARAMS
            , data=self.REQUEST_DATA.format(self.PROVIDERS[provider], sport, Util.current_millis())
            , headers=self.HEADERS
            , name='MatchlistRequest'
        )

        response = Poster.post(request)
        if response is not None:
            logging.info("Response: {}".format(response))
            logging.info("Response: {}".format(response.text))