swimlane / pyews

A Python package to interact with the both on-premises and Office 365 Exchange Web Services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: __init__()

Epiccode887 opened this issue · comments

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'

@Epiccode887 Provide the url to the ews_url parameter and not the endpoint parameter