Пример #1
0
from accounts_api import Api
api = Api.create(
    'https://dhain.dev.spideroak.com:888/apis/accounts/v1/',
    'ben12',
    'bbb',
)
from accounts_api import Api
api = Api.create(
    'https://bdzim.dev.spideroak.com:888/apis/accounts/v1/',
    'ben12',
    'bbb',
)
from accounts_api import Api
api = Api.create(
    'https://bdzim.dev.spideroak.com/apis/accounts/v1/',
    'remote_test_admin',
    'w0mbat',
)
Пример #2
0
def get_api(config):
    return Api.create(os.getenv('ACCOUNT_API_URL', 'https://spideroak.com/apis/accounts/v1/'), 
                      config['api_user'], 
                      config['api_password'],)
Пример #3
0
def get_api(config):
    return Api.create(config['api_root'], 
                      config['api_user'], 
                      config['api_password'],)
Пример #4
0
def get_api(config):
    return Api.create('https://spideroak.com/apis/accounts/v1/', 
                      config['api_user'], 
                      config['api_password'],)
Пример #5
0
def get_api(config):
    return Api.create(
        config['api_root'],
        config['api_user'],
        config['api_password'],
    )