def __init__(self, key, secret, protocol='http', host=None, port=None,
                 version='v1', client=None):
        """Initialize BotR API

           @type key: str
           @param key: API User key

           @type secret: str
           @param secret: API User secret

           @type protocol: str
           @param protocol: API server protocol. Default is 'http'.

           @type host: str
           @param host: API server host name, e.g.:
                        - 'api.bitsontherun.com' or
                        - '127.0.0.1'
                        Default is 'api.bitsontherun.com'.

           @type port: str
           @param port: API server port. Default is '80'.

           @type version: str
           @param version: Version of the API to use. Default is 'v1'.

           @type client: str
           @param client: API client identification string.
        """

        if not host:
            host = "api.bitsontherun.com"

        self._key = key
        self._secret = secret
        self._url = '%s://%s%s/%s' % (protocol, host, ':%s' % port if port else '', version)
        self._kit_version = u'py-%s%s' % (__version__, '-%s' % client if client else '')
dataset/ETHPy150Open rmnl/clack/clack/account_client.py/API.__init__/original