Skip to content

Instantly share code, notes, and snippets.

@warrenkc
Created Jun 24, 2022
Embed
What would you like to do?
Sample C# code for Uptime Robot Heartbeat Monitor
var client = new HttpClient();
// Heartbeat URL
const string url = "https://heartbeat.uptimerobot.com/YOUR CODE HERE";
// Get the response.
HttpResponseMessage response = await client.GetAsync(url);
Console.WriteLine(response.StatusCode);
// Get the response content.
_ = response.Content;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment