Exemplo n.º 1
0
    def _generateRequest(self, api_call, api_params=None):
        if api_params is None:
            api_params = {}

        apiHost = self.apiHost
        if self.apiSecurePort != 443:
            apiHost = apiHost + ":" + str(self.apiSecurePort)

        request = RequestGenerator(self.apiId, self.apiSecret, apiHost, True)
        url_secure = request.getUrl(api_call, api_params)
        return url_secure
Exemplo n.º 2
0
    def _generateRequest(self, api_call, api_params = {}, https = False):
        apiHost = self.apiHost

        if https:
            if self.apiSecurePort != 443:
                apiHost = apiHost + ':' + str(self.apiSecurePort)
        else:
            if self.apiPort != 80:
                apiHost = apiHost + ":" + str(self.apiPort)

        request = RequestGenerator(self.apiId, self.apiSecret, apiHost, https)
        url_secure = request.getUrl(api_call, api_params)
        return url_secure
Exemplo n.º 3
0
    def _generateRequest(self, api_call, api_params={}, https=False):
        apiHost = self.apiHost

        if https:
            if self.apiSecurePort != 443:
                apiHost = apiHost + ':' + str(self.apiSecurePort)
        else:
            if self.apiPort != 80:
                apiHost = apiHost + ":" + str(self.apiPort)

        request = RequestGenerator(self.apiId, self.apiSecret, apiHost, https)
        url_secure = request.getUrl(api_call, api_params)
        return url_secure
Exemplo n.º 4
0
    def _generate_request(self, api_call, api_params=None, https=False):
        if api_params is None:
            api_params = {}

        api_host = self.api_host

        if https:
            if self.api_secure_port != 443:
                api_host = api_host + ':' + str(self.api_secure_port)
        else:
            if self.api_port != 80:
                api_host = api_host + ":" + str(self.api_port)

        request = RequestGenerator(self.api_id, self.api_secret, api_host, https)
        url_secure = request.get_url(api_call, api_params)
        return url_secure
Exemplo n.º 5
0
    def _generate_request(self, api_call, api_params=None, https=False):
        if api_params is None:
            api_params = {}

        api_host = self.api_host

        if https:
            if self.api_secure_port != 443:
                api_host = api_host + ':' + str(self.api_secure_port)
        else:
            if self.api_port != 80:
                api_host = api_host + ":" + str(self.api_port)

        request = RequestGenerator(self.api_id, self.api_secret, api_host,
                                   https)
        url_secure = request.get_url(api_call, api_params)
        return url_secure