{
	"info": {
		"_postman_id": "6281600e-487c-4250-8fbb-30b0141b6799",
		"name": "OpenAPI-push",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "34299531"
	},
	"item": [
		{
			"name": "/neuopenapi/notify/sendNotify",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"exec": [
							"var appid = \"__UNI__jlobevw5q0nqc\";\r",
							"var secret = \"hrnat68b3t5cfp3ludi1\";\r",
							"var language = \"en_US\";\r",
							"var link = \"\";\r",
							"var navigateType = \"2\";\r",
							"var notifyType = \"1\";\r",
							"var openIds = \"2ace75812f4004a53859f0fbabc1c7a4\";\r",
							"var text = \"Payment amount ¥ 100\";\r",
							"var title = \"Recharged successfully\";\r",
							"var url = \"https://www.baidu.com\";\r",
							"var timestamp = new Date().getTime();\r",
							"var sha256Str = \"appid=\" + appid + \"language=\" + language + \"link=\" + link + \"navigateType=\" + navigateType + \"notifyType=\" + notifyType + \"openIds=\" + openIds + \"secret=\" + secret + \"text=\" + text + \"timestamp=\" + timestamp + \"title=\" + title + \"url=\" + url;\r",
							"var signature = CryptoJS.SHA256(sha256Str).toString();\r",
							"\r",
							"pm.collectionVariables.set(\"appid\", appid);\r",
							"pm.collectionVariables.set(\"language\", language);\r",
							"pm.collectionVariables.set(\"link\", link);\r",
							"pm.collectionVariables.set(\"navigateType\", navigateType);\r",
							"pm.collectionVariables.set(\"notifyType\", notifyType);\r",
							"pm.collectionVariables.set(\"openIds\", openIds);\r",
							"pm.collectionVariables.set(\"text\", text);\r",
							"pm.collectionVariables.set(\"title\", title);\r",
							"pm.collectionVariables.set(\"url\", url);\r",
							"pm.collectionVariables.set(\"timestamp\", timestamp);\r",
							"pm.collectionVariables.set(\"sign\", signature);\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							"\r",
							""
						],
						"type": "text/javascript",
						"packages": {}
					}
				}
			],
			"request": {
				"method": "POST",
				"header": [
					{
						"warning": "This is a duplicate header and will be overridden by the Content-Type header generated by Postman.",
						"key": "Content-Type",
						"value": "application/x-www-form-urlencoded",
						"type": "text"
					}
				],
				"body": {
					"mode": "urlencoded",
					"urlencoded": [
						{
							"key": "appid",
							"value": "{{appid}}",
							"type": "text"
						},
						{
							"key": "language",
							"value": "{{language}}",
							"type": "text"
						},
						{
							"key": "link",
							"value": "{{link}}",
							"type": "text"
						},
						{
							"key": "navigateType",
							"value": "{{navigateType}}",
							"type": "text"
						},
						{
							"key": "notifyType",
							"value": "{{notifyType}}",
							"type": "text"
						},
						{
							"key": "openIds",
							"value": "{{openIds}}",
							"type": "text"
						},
						{
							"key": "text",
							"value": "{{text}}",
							"type": "text"
						},
						{
							"key": "title",
							"value": "{{title}}",
							"type": "text"
						},
						{
							"key": "url",
							"value": "{{url}}",
							"type": "text"
						},
						{
							"key": "timestamp",
							"value": "{{timestamp}}",
							"type": "text"
						},
						{
							"key": "sign",
							"value": "{{sign}}",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "https://dev-nsuperapp.neuxnet.com/neuopenapi/notify/sendNotify",
					"protocol": "https",
					"host": [
						"dev-nsuperapp",
						"neuxnet",
						"com"
					],
					"path": [
						"neuopenapi",
						"notify",
						"sendNotify"
					]
				}
			},
			"response": []
		},
		{
			"name": "/neuopenapi/activity/sendActivity",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"exec": [
							"var appid = \"__UNI__0eu36kag0s7u9\";\r",
							"var secret = \"pm8botfujppyi0tmvcha\";\r",
							"var activityId = \"0ed3fa6a-20a5-4771-af04-c975e3fcb311\";\r",
							"var color = \"F88F2E\";\r",
							"var openIds = \"6de35fd857fca74463b644f5bf829f11\";\r",
							"var text = \"6:15 AM - 8:53 AM 21 Dec\";\r",
							"var title = \"TIME TO DEPARTURE\";\r",
							"var templateId = \"123\";\r",
							"var statusV = 1;\r",
							"var language = \"en_US\";\r",
							"var validityTime = 120;\r",
							"var timestamp = new Date().getTime();\r",
							"\r",
							"var sha256Str = \"activityId=\" + activityId + \"appid=\" + appid + \"color=\" + color + \"language=\" + language + \"openIds=\" + openIds + \"secret=\" + secret + \"status=\" + statusV + \"templateId=\" + templateId + \"text=\" + text + \"timestamp=\" + timestamp + \"title=\" + title + \"validityTime=\" + validityTime;\r",
							"\r",
							"var signature = CryptoJS.SHA256(sha256Str).toString();\r",
							"\r",
							"pm.collectionVariables.set(\"appid\", appid);\r",
							"pm.collectionVariables.set(\"activityId\", activityId);\r",
							"pm.collectionVariables.set(\"color\", color);\r",
							"pm.collectionVariables.set(\"openIds\", openIds);\r",
							"pm.collectionVariables.set(\"text\", text);\r",
							"pm.collectionVariables.set(\"status\", statusV);\r",
							"pm.collectionVariables.set(\"language\", language);\r",
							"pm.collectionVariables.set(\"title\", title);\r",
							"pm.collectionVariables.set(\"templateId\", templateId);\r",
							"pm.collectionVariables.set(\"timestamp\", timestamp);\r",
							"pm.collectionVariables.set(\"validityTime\", validityTime);\r",
							"pm.collectionVariables.set(\"sign\", signature);\r",
							"\r",
							""
						],
						"type": "text/javascript",
						"packages": {}
					}
				}
			],
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/x-www-form-urlencoded",
						"type": "text"
					}
				],
				"body": {
					"mode": "urlencoded",
					"urlencoded": [
						{
							"key": "appid",
							"value": "{{appid}}",
							"type": "text"
						},
						{
							"key": "activityId",
							"value": "{{activityId}}",
							"type": "text"
						},
						{
							"key": "color",
							"value": "{{color}}",
							"type": "text"
						},
						{
							"key": "openIds",
							"value": "{{openIds}}",
							"type": "text"
						},
						{
							"key": "text",
							"value": "{{text}}",
							"type": "text"
						},
						{
							"key": "status",
							"value": "{{status}}",
							"type": "text"
						},
						{
							"key": "language",
							"value": "{{language}}",
							"type": "text"
						},
						{
							"key": "title",
							"value": "{{title}}",
							"type": "text"
						},
						{
							"key": "templateId",
							"value": "{{templateId}}",
							"type": "text"
						},
						{
							"key": "timestamp",
							"value": "{{timestamp}}",
							"type": "text"
						},
						{
							"key": "validityTime",
							"value": "{{validityTime}}",
							"type": "text"
						},
						{
							"key": "sign",
							"value": "{{sign}}",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "https://dev-nsuperapp.neuxnet.com/neuopenapi/activity/sendActivity",
					"protocol": "https",
					"host": [
						"dev-nsuperapp",
						"neuxnet",
						"com"
					],
					"path": [
						"neuopenapi",
						"activity",
						"sendActivity"
					]
				}
			},
			"response": []
		}
	],
	"variable": [
		{
			"key": "appid",
			"value": ""
		},
		{
			"key": "language",
			"value": ""
		},
		{
			"key": "link",
			"value": ""
		},
		{
			"key": "navigateType",
			"value": ""
		},
		{
			"key": "notifyType",
			"value": ""
		},
		{
			"key": "openIds",
			"value": ""
		},
		{
			"key": "text",
			"value": ""
		},
		{
			"key": "title",
			"value": ""
		},
		{
			"key": "url",
			"value": ""
		},
		{
			"key": "timestamp",
			"value": ""
		},
		{
			"key": "sign",
			"value": ""
		},
		{
			"key": "variable_key",
			"value": ""
		},
		{
			"key": "activityId",
			"value": ""
		},
		{
			"key": "color",
			"value": ""
		},
		{
			"key": "status",
			"value": ""
		},
		{
			"key": "templateId",
			"value": ""
		},
		{
			"key": "validityTime",
			"value": ""
		}
	]
}