示例#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()
示例#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()
 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)
示例#5
0
 def get(self, endpoint):
     return requests.get(
         SERVER_URL + endpoint,
         headers={'Content-Type': 'application/json'},
         auth=self._auth())
示例#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)
示例#8
0
 def get(self, endpoint):
     return requests.get(SERVER_URL + endpoint,
                         timeout=self.timeout,
                         **self._auth())