# Path: blackbelt/config.py

# 
# Path: blackbelt/errors.py
# class ConfigurationError(BlackBeltError):
#     """ Catch me to handle bad configuration (missing config, expired tokens etc.) """


import json
import re
import requests
from six.moves.urllib.parse import quote, quote_plus
from blackbelt.config import config
from blackbelt.errors import ConfigurationError



class Trello(object):
    """
    I represent a authenticated connection to Trello API.
    Dispatch all requests to it through my methods.

    My actions are named from the BlackBelt's POW; I don't aim to be a full,
    usable client.
    """

    API_KEY = "2e4bb3b8ec5fe2ff6c04bf659ee4553b"
    APP_NAME = 'black-belt'
    URL_PREFIX = "https://trello.com/1"

    def __init__(self, access_token=None):
        self._access_token = access_token

# Path: blackbelt/config.py

# 
# Path: blackbelt/errors.py
# class ConfigurationError(BlackBeltError):
#     """ Catch me to handle bad configuration (missing config, expired tokens etc.) """


# Path: blackbelt/apis/trello.py
import json
import re
import requests
from six.moves.urllib.parse import quote, quote_plus
from blackbelt.config import config
from blackbelt.errors import ConfigurationError




class Trello(object):
    """
    I represent a authenticated connection to Trello API.
    Dispatch all requests to it through my methods.

    My actions are named from the BlackBelt's POW; I don't aim to be a full,
    usable client.
    """

    API_KEY = "2e4bb3b8ec5fe2ff6c04bf659ee4553b"
    APP_NAME = 'black-belt'
    URL_PREFIX = "https://trello.com/1"

    def __init__(self, access_token=None):
        self._access_token = access_token

        if not self._access_token and config.get('trello') and config['trello'].get('access_token'):