mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-24 18:22:24 +00:00
Move helloasso methods in a specific module
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
01ba0a1df9
commit
92408b359b
@ -6,14 +6,15 @@ from datetime import datetime, timedelta
|
||||
from django.conf import settings
|
||||
import requests
|
||||
|
||||
|
||||
_access_token = None
|
||||
_refresh_token = None
|
||||
_expires_at = None
|
||||
|
||||
|
||||
def _get_hello_asso_api_base_url():
|
||||
if not settings.DEBUG:
|
||||
if settings.HELLOASSO_TEST_ENDPOINT:
|
||||
return f"{settings.HELLOASSO_TEST_ENDPOINT_URL}/helloasso-test"
|
||||
elif not settings.DEBUG:
|
||||
return "https://api.helloasso.com"
|
||||
else:
|
||||
return "https://api.helloasso-sandbox.com"
|
Loading…
Reference in New Issue
Block a user