cloudtext
v0.2.7
Published
API support package of CloudText
Downloads
3
Readme
CloudText API Package
Supports clear and easy shortcuts to the cloudtext api The official package
About
- CloudText Website
- Support Email
- Installation
- Docs
Installation
NPM
npm i cloudtext
Use
const cloudtext = require("cloudtext");
Docs
Get
get data from the database
Example
cloudtext.get({
name: "NAME",
pass: "PASSWORD"
}, (data, error) => {
console.log(data)
console.log(data['text'])
});
Change
change database Example
cloudtext.change({
name: "NAME",
pass: "PASSWORD",
// OPTIONS
text: "TEXT",
mode: "public", // public/private/lock
type: "html", // regular/html/readme
key: "MyKey"
}, (error) => {
console.log(error)
})
AccountCheck
check email and password Exaple
cloudtext.accountCheck({
email: "EMAIL",
password: "PASSWORD"
}, data => {
console.log(data)
})