Esempio n. 1
0
 def __init__(self,
              device_info,
              method,
              url,
              host,
              api,
              body_producer=None):
     headers = BaseRequest.headers(host, device_info.id, device_info.key)
     path = url_path(url, api)
     LOG_MSG('{0} PATH {1}'.format(method, path))
     super(BaseRequest, self).__init__(method, path, headers, body_producer)
Esempio n. 2
0
 def __init__(self, device_info, method, url, host, api, body_producer = None):
     headers = BaseRequest.headers(host, device_info.id, device_info.key)
     path = url_path(url, api)
     LOG_MSG('{0} PATH {1}'.format(method, path))
     super(BaseRequest, self).__init__(method, path, headers, body_producer)