- A Simple Module to Manage Your Own Social Media Data
Warning: Module Is In Beta Stages
- Install Using NPM
npm i --save social-manager
- Installing Using Yarn
yarn add social-manager
- Creating A Client
const { Client } = require("social-manager")
const client = new Client()
/**
* @String {id: string}
* @String {email: string}
* @String {password: string}
* */
client.createAccount(`SomeID` , `SomeEmail` , `SomePassword`)
/**
* @String {id}
* @String {message}
* */
client.addMessage(`SomeID`, `SomeMessage`)
/**
* @String {fromId}
* @String {toId}
* */
client.addFriend(`FromId` , `ToId`)
/**
* @String {id}
* */
client.getLastMessage(`SomeID`)
/**
* @String {id}
* @String {message}
* */
client.deleteUserMessage(`SomeID`, `SomeMessage`)
const { Utils } = require("social-manager")
const util = new Utils()
/**
* @String {fromId}
* @String {toId}
* */
util.isFriend(`FromId` , `ToId`)
/**
* @String {id}
* */
util.userMessageCount(`SomeID`)
/**
* @String {id}
* */
util.userFriendCount(`SomeID`)
util.cleanMessage(`f*ck you`) // Changes it to ****
- Add Custom Words
util.cleanMessage(`f*ck you`, ['words'])
const { API } = require('social-manager')
const api = new API({
port: Number;
rateLimit: Boolean;
rateLimitOptions:{
windowMs: Number
max: Number
message: String
statusCode: Number
}
})
api.mainEndpoint("/api")
- If You want More Data To Be show On the Endpoint
api.mainEndpoint("/api", , additionalData)
api.Express()
- Refer Quick.db for more information.