TypeError: __init__()
Epiccode887 opened this issue · comments
Epiccode887 commented
Can't seem to figure out why I'm getting TypeError. Please find below the code:
from pyews import UserConfiguration
userconfig = UserConfiguration(
'myaccount@company.com',
'Password1234',
endpoint='https://outlook.office365.com/autodiscover/autodiscover.svc'
)
Error Message from the terminal:
File "C:\..\..\userConfig.py", line 3, in <module>
userconfig = UserConfiguration(
TypeError: __init__() got an unexpected keyword argument 'endpoint'
Josh Rickard commented
@Epiccode887 Provide the url to the ews_url
parameter and not the endpoint parameter