| Total Complexity | 1 |
| Total Lines | 12 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 2 | from nextcloud.base import WithRequester |
||
| 3 | |||
| 4 | |||
| 5 | class Capabilities(WithRequester): |
||
| 6 | API_URL = "/ocs/v1.php/cloud/capabilities" |
||
| 7 | SUCCESS_CODE = 100 |
||
| 8 | |||
| 9 | def get_capabilities(self): |
||
| 10 | """ Obtain capabilities provided by the Nextcloud server and its apps """ |
||
| 11 | return self.requester.get() |
||
| 12 |