protectedtext api
1.0.0
Unofficial protectedtext.com API
npm install protectedtext-api
const ProtectedTextAPI = require('protectedtext-api');(async function() {const site_id = "test";const site_password = "123";var TabManager = (await new ProtectedTextAPI(site_id, site_password).loadTabs());var savedText = (await TabManager.view());// View saved contentconsole.log(savedText);// Save new content, but keep old textawait TabManager.save(savedText.concat("IT WORKS!"));})();
Method | Params | Description | Returns |
---|---|---|---|
save | text: string | Save the given text, rewriting tab content | boolean |
view | void | Get all tab' s content | string |
deleteSite | void | delete site, with all content, dangerous method. | boolean |
Add tab support
Add support for browser
Auto register site, if not exists
? Pablo Skubert [email protected]
Twitter: @pabloskubert
Github: @pabloskubert
LinkedIn: @pablo-henrique-gomes-580458144
Give a ️ if this project helped you!
Copyright © 2021 Pablo Skubert [email protected].
This project is MIT licensed.