from .connection import set_client_credentials
from .api import API


class Pixiv(API):

    def __init__(self, **kwargs):
        if 'client_id' in kwargs and 'client_secret' in kwargs:
            set_client_credentials(kwargs['client_id'], kwargs['client_secret']
                )
        super().__init__(kwargs['username'], kwargs['password'])

2dfd7a92d3cac3c434da434921cbe1bf0061e6f2
<mask token>

<mask token>


class Pixiv(API):
    <mask token>

<mask token>


class Pixiv(API):

    def __init__(self, **kwargs):
        if 'client_id' in kwargs and 'client_secret' in kwargs:
            set_client_credentials(kwargs['client_id'], kwargs['client_secret']
                )
        super().__init__(kwargs['username'], kwargs['password'])

from .connection import set_client_credentials
from .api import API


class Pixiv(API):

    def __init__(self, **kwargs):
        if 'client_id' in kwargs and 'client_secret' in kwargs:
            set_client_credentials(kwargs['client_id'], kwargs['client_secret']
                )
        super().__init__(kwargs['username'], kwargs['password'])
