Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kagchi/not-uptime-api
- Owner: KagChi
- License: mit
- Created: 2020-11-03T06:54:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-04T01:47:00.000Z (about 4 years ago)
- Last Synced: 2024-10-11T00:54:31.147Z (26 days ago)
- Language: TypeScript
- Size: 96.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
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!
*/
```