MCPcopy Index your code
hub / github.com/O365/python-o365 / refresh_session

Method refresh_session

O365/excel.py:92–99  ·  view source on GitHub ↗

Refresh the current session id

(self)

Source from the content-addressed store, hash-verified

90 return True
91
92 def refresh_session(self):
93 """ Refresh the current session id """
94
95 if self.session_id:
96 url = self.build_url(self._endpoints.get('refresh_session'))
97 response = self.con.post(url, headers={'workbook-session-id': self.session_id})
98 return bool(response)
99 return False
100
101 def close_session(self):
102 """ Close the current session """

Callers

nothing calls this directly

Calls 3

build_urlMethod · 0.80
getMethod · 0.45
postMethod · 0.45

Tested by

no test coverage detected