-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: Login flow v2 #255
feat: Login flow v2 #255
Conversation
To make docs pass you can add:
at the end of And create
|
and for tests(test_init_poll, test_init_poll_async) as this stuff is not for AppAPI:
this help to not trigger these tests for |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #255 +/- ##
==========================================
- Coverage 96.05% 95.72% -0.33%
==========================================
Files 44 45 +1
Lines 5165 5261 +96
==========================================
+ Hits 4961 5036 +75
- Misses 204 225 +21
|
As I understand this should be used like this: import nc_py_api
if __name__ == "__main__":
nc = nc_py_api.Nextcloud(nextcloud_url="http://stable29.local")
r = nc.loginflow_v2.init()
print(r) # here open link in browser and agree to connect
r2 = nc.loginflow_v2.poll(r.token)
print(r2)
print(nc.capabilities)
print(nc.files.listdir()) Thank you for your pull request and interest in Nextcloud and nc_py_api, after changing the URL I will gladly merge it. :) |
Thanks again, good job :) |
Thank you too |
Changes proposed in this pull request: