Skip to content

pabloskubert/protectedtext-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to protectedtext-api 👋

Version

Documentation Maintenance License: MIT Twitter: pabloskubert

Unofficial protectedtext.com API

Install

npm install protectedtext-api

Usage

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 content
    console.log(savedText);

    // Save new content, but keep old text
    await TabManager.save(savedText.concat("IT WORKS!"));
})();

API REFERENCE

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

Future implementations 🚀 🚀

  • Add tab support
  • Add support for browser
  • Auto register site, if not exists

Author

👤 Pablo Skubert [email protected]

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2021 Pablo Skubert [email protected].
This project is MIT licensed.

About

Unofficial protectedtext.com API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published