Security News
OpenJS: “XZ Utils Cyberattack Likely Not an Isolated Incident”
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
quick-api-messenger
Advanced tools
Weekly downloads
Readme
Tự build chon bạn api gửi tin nhắn facebook một cách nhanh chóng .
npm install --save quick-api-messenger
const api = require('../index');
api({
email: "EMAIL",
password: "PASS"
}, { /*
//nếu sài webhook thì thêm
webhook: 'http://localhost/trywebhook/'
*/ });
CHẠY THÔI
PORT=1234 node server.js
Trong đó 1234 là port bạn muốn server listen.
Nếu login bị lỗi vui lòng tắt xác thực và accept login trên facebook.
Sau khi build thành công api sẽ lắng nghe request ở PORT bạn đặt.
GỬI TIN NHẮN
url: http://www.domain.com/sendMessage/?body=<nội dung>&target<ID người nhận>&attachment=<url ảnh hoặc âm thanh>&type<audio||image>
LISTEN WEBHOOK
Cấu hình url webhook như sau
const api = require('../index');
api({ email: "EMAIL", password: "PASS" }, { webhook: 'http://localhost/routerWebhook/' });
Server webhook demo (NODEJS);
const app = require('express')();
const bodyParser = require('body-parser');
const urlencodeParser = bodyParser.urlencoded({ extended: false })
const { PORT = 80 } = process.env;
app.listen(PORT, () => console.log('Listen in port', PORT));
app.post('/trywebhook', urlencodeParser, function (req, res) {
console.log(req.body);
res.end();
});
Thanks for used
Trần ĐứcÝ
Trần Đức Cường (notekunn)
FAQs
Tự build chon bạn api gửi tin nhắn facebook một cách nhanh chóng . ## INSTALL + Cài đặt môi trường node js cho server của bạn : + Cài đặt package: ``` npm install --save quick-api-messenger ``` + Run code
The npm package quick-api-messenger receives a total of 1 weekly downloads. As such, quick-api-messenger popularity was classified as not popular.
We found that quick-api-messenger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
Company News
Come meet the Socket team at BSidesSF and RSA! We're sponsoring several fun networking events and we would love to see you there.
Security News
OSI is starting a conversation aimed at removing the excuse of the SaaS loophole for companies navigating licensing and the complexities of doing business with open source.