Capabilities.get_capabilities()   A
last analyzed

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
# -*- 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