Completed
Push — master ( a9b8b6...971575 )
by Matěj
12s
created

Capabilities.get_capabilities()   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nop 1
1
from nextcloud.base import WithRequester
2
3
4
class Capabilities(WithRequester):
5
    API_URL = "/ocs/v1.php/cloud/capabilities"
6
    SUCCESS_CODE = 100
7
8
    def get_capabilities(self):
9
        """ Obtain capabilities provided by the Nextcloud server and its apps """
10
        return self.requester.get()
11