Виджет Discord канала

Получение настроек

GET https://easydonate.ru/api/v3/plugin/Discord.Widget/getSettings

Запрос вернет настройки плагина.

Headers

{
   "success": true,
   "response": {
      "enabled": true,
      "channelId": "479214992730751008",
      "width": "100%",
      "height": "300px",
      "theme": "dark"
   }
}

Получение виджета

GET https://easydonate.ru/api/v3/plugin/Discord.Widget/getEmbed

Запрос вернет сгенерированный на основе настроек плагина виджет в виде HTML кода.

Headers

{
   "success": true,
   "response": "<iframe sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts" src="https"://discordapp.com/widget?id=479214992730751008&theme=dark" width="100%" height="300px" allowtransparency="true" frameborder="0"></iframe>"
}

Last updated