We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f8fc87 commit 0520b95Copy full SHA for 0520b95
1 file changed
lambdas/shared/src/common/api_clients/mns_service.py
@@ -6,6 +6,7 @@
6
import requests
7
8
from common.api_clients.authentication import AppRestrictedAuth
9
+from common.api_clients.constants import MnsNotificationPayload
10
from common.api_clients.errors import raise_error_response
11
from common.api_clients.retry import request_with_retry_backoff
12
@@ -136,7 +137,7 @@ def check_delete_subscription(self):
136
137
except Exception as e:
138
return f"Error deleting subscription: {str(e)}"
139
- def publish_notification(self, notification_payload) -> dict | None:
140
+ def publish_notification(self, notification_payload: MnsNotificationPayload) -> dict | None:
141
response = requests.request(
142
"POST",
143
f"{MNS_BASE_URL}/events",
0 commit comments