Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Api Usage
<script src="http://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
$.get("http://pingoblast.com/ping.php?title=Website Title&url=http://www.your website.com&md=json").done(function (data)
{
console.log(data); //Here you can process the output
});
// using XMLHttpRequest
var xhr = new XMLHttpRequest();
xhr.open("GET", "http://pingoblast.com/ping.php?title=Website Title&url=http://www.your website.com&md=json", true);
xhr.onload = function () {
console.log(xhr.responseText);//Here you can process the output
};
xhr.send();
// using the Fetch API
fetch("http://pingoblast.com/ping.php?title=Website title&url=http://www.website url.com&md=json").then(function (response)
{
return response.json();//Here you can process the output
}).then(function (json)
{
console.log(json);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.