We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98cdba3 commit 2395a63Copy full SHA for 2395a63
1 file changed
sailthru/sailthru_client.py
@@ -597,6 +597,30 @@ def receive_verify_post(self, post_params):
597
598
return True
599
600
+ def receive_update_post(self, post_params):
601
+ """
602
+ Update postbacks
603
604
+
605
+ if isinstance(post_params, dict):
606
+ required_params = ['action', 'email', 'sig']
607
+ if not self.check_for_valid_postback_actions(required_params, post_params):
608
+ return False
609
+ else:
610
611
612
+ if post_params['action'] != 'update':
613
614
615
+ signature = post_params['sig']
616
+ post_params = post_params.copy()
617
+ del post_params['sig']
618
619
+ if signature != get_signature_hash(post_params, self.secret):
620
621
622
+ return True
623
624
def receive_optout_post(self, post_params):
625
"""
626
Optout postbacks
0 commit comments