def firefox_starts(): # Authenticate the user resp = requests.get(SERVER_URL + '/push-server-config', timeout=30) resp.raise_for_status() resp = requests.post( SERVER_URL + '/registration', timeout=30, data=json.dumps({"simplePushURLs": {"calls": SP_URL, "rooms": SP_URL}})) resp.raise_for_status()
def firefox_starts(): # Authenticate the user resp = requests.get(SERVER_URL + '/push-server-config', timeout=30) resp.raise_for_status() resp = requests.post( SERVER_URL + '/registration', timeout=30, data=json.dumps({"simplePushURLs": { "calls": SP_URL, "rooms": SP_URL }})) resp.raise_for_status()
def get(self, endpoint): return requests.get( SERVER_URL + endpoint, headers=self.headers, timeout=self.timeout)
def get(self, endpoint): return requests.get(SERVER_URL + endpoint, headers=self.headers, timeout=self.timeout)
def get(self, endpoint): return requests.get( SERVER_URL + endpoint, headers={'Content-Type': 'application/json'}, auth=self._auth())
def get(self, endpoint): return requests.get(SERVER_URL + endpoint, timeout=self.timeout, **self._auth())
def get(self, endpoint): return requests.get(URL_SERVER + endpoint, timeout=self.timeout)