Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kagchi/not-uptime-api

An https://uptime.notadev.xyz api wrapper
https://github.com/kagchi/not-uptime-api

Last synced: 4 days ago
JSON representation

An https://uptime.notadev.xyz api wrapper

Awesome Lists containing this project

README

        

# not-uptime-api

## Usage (Submit Url)

```javascript
const { uptimeClient } = require("noupi");
const apiClient = new uptimeClient("yOurNicE Uptime Token")

//using await
async function submitLink() {
await apiClient.submit("testApp","yourlink.glitch.me")
}
submitLink()

//using then
apiClient.submit("testApp", "yourlink.glitch.me").then(x => console.log(x))
/*NOTE:
Valid Url Ended with .glitch.me, .repl.co, .repl.run,
Error Catching Doesnt Work For Now!
*/
```