Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
quick-api-messenger
Advanced tools
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.