MCPcopy Create free account
hub / github.com/O365/python-o365 / get_settings

Method get_settings

O365/mailbox.py:1029–1046  ·  view source on GitHub ↗

Return the MailboxSettings. :rtype: mailboxsettings

(self)

Source from the content-addressed store, hash-verified

1027 )
1028
1029 def get_settings(self):
1030 """Return the MailboxSettings.
1031
1032 :rtype: mailboxsettings
1033 """
1034 url = self.build_url(self._endpoints.get("settings"))
1035 params = {}
1036
1037 response = self.con.get(url, params=params)
1038
1039 if not response:
1040 return iter(())
1041
1042 data = response.json()
1043
1044 return self.mailbox_settings_constructor(
1045 parent=self, **{self._cloud_data_key: data}
1046 )
1047

Callers 2

set_automatic_replyMethod · 0.95
set_disable_replyMethod · 0.95

Calls 3

build_urlMethod · 0.80
jsonMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected