This is simple API for fetching information about the user from the Discord API, and uptime check for different sites.
Fetch information about the user with the given ID.
Fetch the presence of the user with the given ID.
Check the uptime of the given URL.
For uptime checks, you need to provide a JSON object with the following fields:
url: The URL to check.webhook: The Discord webhook to send the result to.userID: The user ID to send the ID and password, you can use them for change or delete checker.
$ curl -X POST -d '{ "url": "google.com", "webhook": "discord.com/api/webhooks/...", "userID": "991777093312585808" }' https://example.com/v1/uptimeTo authenticate, you need to provide a bearer token in the Authorization header.
$ curl -H { "Authorization": "<password>" } ...Change the webhook for the uptime checker.
For changing the webhook, you need to provide a JSON object with the following fields:
id: The ID of the site.url: The new webhook URL.
$ curl -X POST -H { "Authorization": "<password>" } -d '{ "id": "...", "url": "discord.com/api/webhooks/..." }' https://example.com/v1/uptime/webhookDelete the uptime checker by ID.
$ curl -X POST -H { "Authorization": "<password>" } https://example.com/v1/uptime/delete/...Send the uptime message, about site status, by webhook.
Ping the site by ID.
Ping all sites.