![Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack](https://cdn.sanity.io/images/cgdhsj6q/production/6af25114feaaac7179b18127c83327568ff592d1-1024x1024.webp?w=800&fit=max&auto=format)
Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
olx-scraper
Advanced tools
Readme
Unofficial Scraper API for OLX.CO.ID
You can install the package using npm or Yarn:
npm install wacloudapi
or
yarn add wacloudapi
First, import the required classes from the package:
const { Message, WAParser, WebhookServer } = require('wacloudapi);
Create a new Message
instance with your API credentials:
const message = new Message(apiVersion, phoneNumberId, accessToken);
You can now use the various methods provided by the Message
class to send messages:
message.sendTextMessage(recipientPhoneNumber, messageContent);
Create a new WebhookServer
instance and specify the desired port and whether to use ngrok:
const webhookServer = new WebhookServer(port, useNgrok, ngrokAuthToken);
Add a listener for incoming messages:
webhookServer.on('message', (message) => {
console.log('Received message:', message);
});
Add a route for webhook verification:
webhookServer.Verification(callbackUrl, verificationToken);
Start the webhook server:
webhookServer.start();
The WAParser
class is used to parse incoming webhook data from the WhatsApp Business API.
Returns the parsed message object depending on the type of message contained in the received webhook data.
const parse = new WAParser(WebhookData);
// parse message
const parsedMessage = parse.parseMessage();
The NotificationParser
class is used to parse incoming webhook data from the WhatsApp Business API.
Returns the parsed message object depending on the type of message contained in the received webhook data.
const parse = new NotificationParser(WebhookData);
// parse message
const parsedMessage = parse.parseNotification();
For detailed information on available methods and how to use them, please refer to the documentation.
Contributions are welcome! If you'd like to contribute, please follow these steps:
We appreciate any help and feedback!
Email : cp@imtaqin.id
This project is licensed under the MIT License. See the LICENSE file for more information.
FAQs
Unofficial OLX Client API / Scraper
The npm package olx-scraper receives a total of 0 weekly downloads. As such, olx-scraper popularity was classified as not popular.
We found that olx-scraper demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.