From 0b10293f3239f255f2beaa256eeab950f0801dac Mon Sep 17 00:00:00 2001 From: Mika Hietanen Date: Thu, 14 Nov 2024 16:20:08 +0200 Subject: [PATCH] Update helsinki profile to use POST requests --- parking_permits/services/hel_profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parking_permits/services/hel_profile.py b/parking_permits/services/hel_profile.py index 8b92b74d..02d98e4d 100644 --- a/parking_permits/services/hel_profile.py +++ b/parking_permits/services/hel_profile.py @@ -48,7 +48,7 @@ def get_customer(self): def _get_profile(self): api_token = self.request.headers.get("X-Authorization") - response = requests.get( + response = requests.post( settings.OPEN_CITY_PROFILE_GRAPHQL_API, json={"query": helsinki_profile_query}, headers={"Authorization": api_token},