[wordpress插件] AWS SNS PluginAWS SNS插件

wordpress 插件 文章 2020-02-27 10:00 515 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin is created to send push notifications to different devices using Amazon Simple Notification Service.

创建此插件的目的是使用Amazon Simple Notification Service将推送通知发送到不同的设备。

It connects with the Amazon SNS and fetch all the Topics created.

它与Amazon SNS连接并获取所有创建的主题。

And publish messages to that topics.

并发布有关该主题的消息。

To use this plugin you must need following things.

要使用此插件,您需要执行以下操作。

1. Amazon web service account.

1. Amazon Web服务帐户。

2. Amazon API “Access Key ID” and “Secret Access Key”.

2. Amazon API“访问密钥ID”和“秘密访问密钥”。

3. Create atleast one topic in SNS.

3.在SNS中创建至少一个主题。

Following payload is send to the selected topic, togather with the title and message you provide.

以下有效负载将发送到所选主题,并与您提供的标题和消息一起收集。

{

{

“default”: “[MESSAGE]”,

“默认”:“ [消息]”,

“APNS”: “{\”aps\”:{\”alert\”: \”[MESSAGE]\”} }”,

“ APNS”:“ {\” aps \”:{\“ alert \”:\“ [MESSAGE] \”}}}”,

“APNS_SANDBOX”:”{\”aps\”:{\”alert\”:\”[MESSAGE]\”}}”,

“ APNS_SANDBOX”:“ {\” aps \“:{\” alert \“:\” [MESSAGE] \“}}}”,

“GCM”: “{ \”data\”: { \”message\”: \”[MESSAGE]\”, \”title\”: \”[TITLE]\”, \”datetime\”: \”[

“ GCM”:“ {\” data \”:{\” message \”:\“ [MESSAGE] \”,\“ title \”:\“ [TITLE] \”,\“ datetime \”:\“ [

DATETIME]\” } }”,

DATETIME] \“}}”,

“MPNS” : “1[MESSAGE]”,

“ MPNS”:“ 1 [MESSAGE]”,

“WNS” : “”

“ WNS”:“”

}

}

In above payload following tags are replaced by the data provided.

在上面的有效负载中,以下标记被提供的数据替换。

[TITLE] -> The title you provide.

[TITLE]->您提供的标题。

[MESSAGE] -> The message you provide.

[MESSAGE]->您提供的消息。

[DATETIME] -> server current datetime.

[DATETIME]->服务器当前日期时间。

安装步骤

    1. Upload the plugin files to the /wp-content/plugins/aws-sns directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到 / wp-content / plugins / aws-sns 目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ screen in WordPress.
    4. 通过WordPress中的“插件”屏幕激活插件。

    5. Use the Settings->AWS SNS screen to configure the plugin.
    6. 使用“设置”->“ AWS SNS”屏幕来配置插件。

    7. Provide Access Key ID, Secret Access Key, and Region of your Amazon SNS.
    8. 提供访问密钥ID,秘密访问密钥和Amazon SNS的区域。

    1.0

    1.0

      • Initial release.
      • 初始版本。

下载地址
https://downloads.wordpress.org/plugin/aws-sns.zip
-EOF-

AI助手支持GPT4.0