@@ -28,6 +28,9 @@ type AppSettings struct {
28
28
SqsURL * string `json:"sqs_url,omitempty"`
29
29
SqsKey * string `json:"sqs_key,omitempty"`
30
30
SqsSecret * string `json:"sqs_secret,omitempty"`
31
+ SnsTopicArn * string `json:"sns_topic_arn,omitempty"`
32
+ SnsKey * string `json:"sns_key,omitempty"`
33
+ SnsSecret * string `json:"sns_secret,omitempty"`
31
34
BeforeMessageSendHookURL * string `json:"before_message_send_hook_url,omitempty"`
32
35
CustomActionHandlerURL * string `json:"custom_action_handler_url,omitempty"`
33
36
@@ -225,6 +228,25 @@ func (c *Client) CheckSqs(ctx context.Context, req *CheckSQSRequest) (*CheckSQSR
225
228
return & resp , err
226
229
}
227
230
231
+ type CheckSNSRequest struct {
232
+ SnsTopicARN string `json:"sns_topic_arn"`
233
+ SnsKey string `json:"sns_key"`
234
+ SnsSecret string `json:"sns_secret"`
235
+ }
236
+
237
+ type CheckSNSResponse struct {
238
+ Status string `json:"status"`
239
+ Error string `json:"error"`
240
+ Data map [string ]interface {} `json:"data"`
241
+ Response
242
+ }
243
+
244
+ func (c * Client ) CheckSns (ctx context.Context , req * CheckSNSRequest ) (* CheckSNSResponse , error ) {
245
+ var resp CheckSNSResponse
246
+ err := c .makeRequest (ctx , http .MethodPost , "check_sns" , nil , req , & resp )
247
+ return & resp , err
248
+ }
249
+
228
250
type CheckPushRequest struct {
229
251
MessageID string `json:"message_id,omitempty"`
230
252
ApnTemplate string `json:"apn_template,omitempty"`
0 commit comments