diff --git a/api/Passport/Developer Notify All Users.bru b/api/Passport/Developer Notify All Users.bru new file mode 100644 index 0000000..0609e3b --- /dev/null +++ b/api/Passport/Developer Notify All Users.bru @@ -0,0 +1,30 @@ +meta { + name: Developer Notify All Users + type: http + seq: 1 +} + +post { + url: {{endpoint}}/cgi/id/dev/notify/all + body: json + auth: bearer +} + +auth:bearer { + token: {{atk}} +} + +body:json { + { + "client_id": "{{third_client_id}}", + "client_secret":"{{third_client_tk}}", + "type": "general", + "subject": "Merry Christmas!", + "subtitle": "一条来自 Solar Network 团队的信息", + "content": "今天是 12 月 25 日 (UTC+8),小羊祝您圣诞快乐 🎄", + "metadata": { + "image": "6EqsYQwmFRCkbmhR" + }, + "priority": 10 + } +} diff --git a/api/bruno.json b/api/bruno.json new file mode 100644 index 0000000..cee8f5a --- /dev/null +++ b/api/bruno.json @@ -0,0 +1,9 @@ +{ + "version": "1", + "name": "Solar Network", + "type": "collection", + "ignore": [ + "node_modules", + ".git" + ] +} \ No newline at end of file diff --git a/api/environments/Prod.bru b/api/environments/Prod.bru new file mode 100644 index 0000000..7f767e1 --- /dev/null +++ b/api/environments/Prod.bru @@ -0,0 +1,8 @@ +vars { + endpoint: https://api.sn.solsynth.dev + third_client_id: alphabot +} +vars:secret [ + atk, + third_client_tk +]