nextcloud.api_wrappers.capabilities   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A Capabilities.get_capabilities() 0 3 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