SoKnight

EasyDonate LongPoll API Schema

Feb 4th, 2022 (edited)
1,494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.61 KB | None | 0 0
  1. {
  2.    "success":true,
  3.    "response":[
  4.       {
  5.          "type":"new_payment",
  6.          "objects":[
  7.             {
  8.                "payment_id":765754,
  9.                "customer":"DontFollow",
  10.                "products":[
  11.                   {
  12.                      "id":222,
  13.                      "name":"GF7erhT4",
  14.                      "commands": [
  15.                         "m DontFollow \u0422\u044b \u0433\u043e\u043c\u043e\u0441\u0435\u043a"
  16.                      ],
  17.                      "cost":900,
  18.                      "count":3
  19.                   },
  20.                   {
  21.                      "id":223,
  22.                      "name":"KtU671gj",
  23.                      "commands": [
  24.                         "m DontFollow \u0422\u044b \u0433\u043e\u043c\u043e\u0441\u0435\u043a"
  25.                      ],
  26.                      "cost":714,
  27.                      "count":2
  28.                   },
  29.                   {
  30.                      "id":224,
  31.                      "name":"6JjG6KpA",
  32.                      "commands": [
  33.                         "m DontFollow \u0422\u044b \u0433\u043e\u043c\u043e\u0441\u0435\u043a"
  34.                      ],
  35.                      "cost":229,
  36.                      "count":1
  37.                   },
  38.                   {
  39.                      "id":225,
  40.                      "name":"mgjpXQIW",
  41.                      "commands": [
  42.                         "m DontFollow \u0422\u044b \u0433\u043e\u043c\u043e\u0441\u0435\u043a"
  43.                      ],
  44.                      "cost":518,
  45.                      "count":8
  46.                   }
  47.                ],
  48.                "plugins":[
  49.                   {
  50.                      "type":"purchase_notifications",
  51.                      "commands":[
  52.                         "// TODO any commands"
  53.                      ]
  54.                   },
  55.                   {
  56.                      "type":"additional_actions",
  57.                      "actions":[
  58.                         {
  59.                            "type":"kill_entity",
  60.                            "entity":{
  61.                               "type":"player",
  62.                               "selector":"SoKnight"
  63.                            }
  64.                         }
  65.                      ]
  66.                   }
  67.                ],
  68.                "created_at":"2022-02-03 23:08:08"
  69.             },
  70.             {
  71.                "payment_id":737556,
  72.                "customer":"SoKnight",
  73.                "products":[], // ...
  74.                "created_at":"2022-02-03 23:08:08"
  75.             }
  76.          ]
  77.       },
  78.       {
  79.          "type":"repeat_payment",
  80.          "objects":[] // equals new_payment
  81.       },
  82.       {
  83.          "type":"new_withdraw",
  84.          "objects":[
  85.             {
  86.                "payment_id":765754,
  87.                "commands":[
  88.                   "m SoKnight \u0422\u044b \u0433\u043e\u043c\u043e\u0441\u0435\u043a"
  89.                   "m DontFollow \u0422\u044b \u0433\u043e\u043c\u043e\u0441\u0435\u043a"
  90.                ]
  91.             },
  92.             {
  93.                "payment_id":737556,
  94.                "commands":[] // ...
  95.             }
  96.          ]
  97.       },
  98.       {
  99.          "type":"new_reward",
  100.          "objects":[
  101.             {
  102.                "reward_id":765754,
  103.                "customer":"DontFollow",
  104.                "commands": [
  105.                   "// TODO any reward giving command"
  106.                ],
  107.                "created_at":"2022-02-03 23:08:08"
  108.             },
  109.             {
  110.                "reward_id":737556,
  111.                "customer":"SoKnight",
  112.                "commands":[], // ...
  113.                "created_at":"2022-02-03 23:08:08"
  114.             }
  115.          ]
  116.       }
  117.    ]
  118. }
Add Comment
Please, Sign In to add comment