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

Implement CurrentUser entity #9

Closed
ivlevdenis opened this issue Nov 19, 2020 · 2 comments · Fixed by #49
Closed

Implement CurrentUser entity #9

ivlevdenis opened this issue Nov 19, 2020 · 2 comments · Fixed by #49
Assignees
Labels
v9 Relates to Toggl API V9

Comments

@ivlevdenis
Copy link
Contributor

https://github.com/toggl/toggl_api_docs/blob/master/chapters/users.md

@ivlevdenis ivlevdenis added this to the Release 0.3.0 milestone Nov 19, 2020
@nifadyev nifadyev added the bug Something isn't working label May 17, 2024
@nifadyev
Copy link
Collaborator

nifadyev commented May 17, 2024

According to migration guide, most endpoints for current users are available at /me path. So Users related repository should be refactored

@nifadyev nifadyev changed the title Check & fix User entity and repository Adapt User related logic to API V9 May 28, 2024
@nifadyev nifadyev added v9 Relates to Toggl API V9 and removed bug Something isn't working labels Jul 23, 2024
@nifadyev nifadyev self-assigned this Jul 23, 2024
@nifadyev
Copy link
Collaborator

nifadyev commented Jul 23, 2024

Rough plan:

  • Add check for billing plan. Request and response fields set depend on it, as well as endpoints availability
  • Write explicit note about using UTC timezone for datetime (until some type of package config with user timezone is implemented)
  • Necessary endpoints (available on free plan):
    • GET/PUT /me - Returns details for the current user. Returns huge response, which requires a lot of pydantic schemas for mostly all toggl entities
    • GET /me/features
    • GET/POST /me/preferences
  • Cover new logic with tests and type annotations

@nifadyev nifadyev changed the title Adapt User related logic to API V9 Implement CurrentUser endpoints Jul 23, 2024
@nifadyev nifadyev changed the title Implement CurrentUser endpoints Implement CurrentUser entity Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v9 Relates to Toggl API V9
Projects
Development

Successfully merging a pull request may close this issue.

2 participants