Skip to content

Commit

Permalink
Merge pull request #40 from inloco/api-feedback-session-token
Browse files Browse the repository at this point in the history
Allow api.register_feedback function to receive a session_token
  • Loading branch information
ebaf authored Feb 29, 2024
2 parents 6388cc7 + 8d397e0 commit 1db51e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions incognia/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)
Expand Down

0 comments on commit 1db51e2

Please sign in to comment.