Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'UsersEndpoint' object has no attribute 'me' #84

Closed
Galsor opened this issue Oct 8, 2021 · 3 comments
Closed

AttributeError: 'UsersEndpoint' object has no attribute 'me' #84

Galsor opened this issue Oct 8, 2021 · 3 comments

Comments

@Galsor
Copy link

Galsor commented Oct 8, 2021

It seems that Users endpoint me referenced by Notion API Docs is not available yet it seems implemented in UsersEndpoint.

>>> notion.users.me()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'UsersEndpoint' object has no attribute 'me'
@ramnes
Copy link
Owner

ramnes commented Oct 9, 2021

It has been implemented in 0.7.0. What version do you use?

@ramnes
Copy link
Owner

ramnes commented Oct 11, 2021

Works as expected on 0.7.0:

>>> notion.users.me()
{'object': 'user',
 'id': ...,
 'name': 'notion-sdk-py',
 'avatar_url': None,
 'type': 'bot',
 'bot': {'owner': {'type': 'workspace', 'workspace': True}}}

@ramnes ramnes closed this as completed Oct 11, 2021
@Galsor
Copy link
Author

Galsor commented Oct 11, 2021

I was on 0.6.0.
Works as expected. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants