Exemplo n.º 1
0
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()
Exemplo n.º 2
0
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()
Exemplo n.º 3
0
 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)
Exemplo n.º 5
0
 def get(self, endpoint):
     return requests.get(
         SERVER_URL + endpoint,
         headers={'Content-Type': 'application/json'},
         auth=self._auth())
Exemplo n.º 6
0
 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)
Exemplo n.º 8
0
 def get(self, endpoint):
     return requests.get(SERVER_URL + endpoint,
                         timeout=self.timeout,
                         **self._auth())