Completed
Push — master ( 72b331...d4b7d2 )
by Steffen
02:14
created

IUser.get_account_balance()   A

Complexity

Conditions 1

Size

Total Lines 9
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 9
rs 10
c 0
b 0
f 0
cc 1
nop 1
1
#!/usr/bin/python
2
# -*- coding: utf-8 -*-
3
from kuon.api_response import APIResponse
4
from kuon.bitskins import BitSkins
5
6
7
class IUser(BitSkins):
8
    """Implementation of the API methods related to the user on BitSkins"""
9
10
    def __init__(self, *args, **kwargs):
11
        """Initializing function"""
12
        super().__init__(*args, **kwargs)
13
14
    def get_account_balance(self) -> APIResponse:
15
        """GetAccountBalance v1 implementation
16
        https://bitskins.com/api/#get_account_balance
17
18
        :return:
19
        """
20
        api_url = "https://bitskins.com/api/v1/get_account_balance/"
21
22
        return self.api_request(api_url=api_url)
23