mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 07:02:22 +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
|
from django.conf import settings
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
|
||||||
_access_token = None
|
_access_token = None
|
||||||
_refresh_token = None
|
_refresh_token = None
|
||||||
_expires_at = None
|
_expires_at = None
|
||||||
|
|
||||||
|
|
||||||
def _get_hello_asso_api_base_url():
|
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"
|
return "https://api.helloasso.com"
|
||||||
else:
|
else:
|
||||||
return "https://api.helloasso-sandbox.com"
|
return "https://api.helloasso-sandbox.com"
|
Loading…
Reference in New Issue
Block a user