@re621/zestyapi
Version:
Comprehensive JS wrapper for e621.net API
27 lines (22 loc) • 754 B
HTML
<html>
<head>
<title>Zesty API</title>
<script src="../dist/zestyapi.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"
integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</head>
<body>
<pre id="output"></pre>
<script>
const output = $("#output");
const E621 = ZestyAPI.connect({
userAgent: "zestyapi/example",
debug: true,
});
E621.Posts.get(12345).then((result) => {
output.text(JSON.stringify(result, null, 2));
});
</script>
</body>
</html>