src/Web/WebhookClient/Pages/RegisterWebhook.cshtml

(完整代码) 755B

@page
@model WebhookClient.Pages.RegisterWebhookModel
@{
    ViewData["Title"] = "RegisterWebhook";
}

<h3>Register a new webhook</h3>

<p>This page registers the "OrderPaid" Webhook by sending a POST to the WebHooks API. Once the Webhook is set, you will be able to see new paid orders from the <a asp-page="Index">Index</a> page.</p>

<form method="post">
    <p>Token: <input type="text" asp-for="Token" /></p>
    <input type="submit" value="send" />
</form>

@if (Model.ResponseCode != (int)System.Net.HttpStatusCode.OK)
{
    <p>Error @Model.ResponseCode (@Model.ResponseMessage) when calling the Webhooks API (@Model.RequestUrl) with GrantUrl: @Model.GrantUrl)</p>
    <p>Data sent to the webhooks API was <raw>@Model.RequestBodyJson</raw></p>
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。