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