From 8d397e086c3cc96af7a3884953e7e274e957b97e Mon Sep 17 00:00:00 2001 From: Emanuel Ferreira Date: Tue, 16 Jan 2024 18:11:23 -0300 Subject: [PATCH] Allow api.register_feedback function to receive a session_token --- incognia/api.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/incognia/api.py b/incognia/api.py index 542ad8e..136c55a 100644 --- a/incognia/api.py +++ b/incognia/api.py @@ -67,7 +67,8 @@ def register_feedback(self, payment_id: Optional[str] = None, signup_id: Optional[str] = None, account_id: Optional[str] = None, - installation_id: Optional[str] = None) -> None: + installation_id: Optional[str] = None, + session_token: Optional[str] = None) -> None: if not event: raise IncogniaError('event is required.') if not timestamp: @@ -84,7 +85,8 @@ def register_feedback(self, 'payment_id': payment_id, 'signup_id': signup_id, 'account_id': account_id, - 'installation_id': installation_id + 'installation_id': installation_id, + 'session_token': session_token } data = encode(body) return self.__request.post(Endpoints.FEEDBACKS, headers=headers, data=data)