1 # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 from django.conf import settings
7 WL_CONSUMER_KEY = getattr(settings, 'APICLIENT_WL_CONSUMER_KEY', None)
8 WL_CONSUMER_SECRET = getattr(settings, 'APICLIENT_WL_CONSUMER_SECRET', None)
10 WL_API_URL = getattr(settings, 'APICLIENT_WL_API_URL', 'https://wolnelektury.pl/api/')
12 BETA_API_URL = getattr(settings, 'APICLIENT_BETA_API_URL', 'http://dev.wolnelektury.pl/api/')
14 WL_REQUEST_TOKEN_URL = getattr(
15 settings, 'APICLIENT_WL_REQUEST_TOKEN_URL',
16 WL_API_URL + 'oauth/request_token/')
17 WL_ACCESS_TOKEN_URL = getattr(
18 settings, 'APICLIENT_WL_ACCESS_TOKEN_URL',
19 WL_API_URL + 'oauth/access_token/')
20 WL_AUTHORIZE_URL = getattr(
21 settings, 'APICLIENT_WL_AUTHORIZE_URL',
22 WL_API_URL + 'oauth/authorize/')
24 BETA_REQUEST_TOKEN_URL = BETA_API_URL + 'oauth/request_token/'
25 BETA_ACCESS_TOKEN_URL = BETA_API_URL + 'oauth/access_token/'
26 BETA_AUTHORIZE_URL = BETA_API_URL + 'oauth/authorize/'