Невозможно получить двоичный токен безопасности для https://login.microsoftonline.com/extSTS.srf
Использование:
Код: Выделить всё
from office365.runtime.auth.user_credential import UserCredential
from office365.sharepoint.client_context import ClientContext
username = 'username'
password = 'pass'
site_url = "site"
ctx = ClientContext(site_url).with_credentials(UserCredential("{username}", "{password}"))
web = ctx.web.get().execute_query()
print("Web title: {0}".format(web.properties['Title']))
Мобильная версия