
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
WhatsApp Cloud API is complicated, Twilio is expensive, PyGwan is the opposite of both. Free & Intuitive! ~ Tarmica Chiwara.
Unofficial Python wrapper for the WhatsApp Cloud API by Tarmica Chiwara.
To install the WhatsApp Python wrapper, use the following command:
pip install pygwan
Import the WhatsApp
class from the package and initialize an instance with your WhatsApp token and phone number ID:
from pygwan import WhatsApp
whatsapp = WhatsApp(token="your_token", phone_number_id="your_phone_number_id")
You can send a text message to a WhatsApp user using the send_message
method:
whatsapp.send_message("Hello, this is a test message.", "recipient_phone_number")
Reply to a message using the reply_to_message
method:
whatsapp.reply_to_message("message_id", "recipient_phone_number", "Reply message.")
Send a template message using the send_template
method:
components = [
# List of template components
# Example: {"type": "text", "text": "Hello, this is a template message."}
]
whatsapp.send_template("template_name", "recipient_phone_number", components)
Send a location message using the send_location
method:
whatsapp.send_location("-23.564", "-46.654", "Location Name", "Location Address", "recipient_phone_number")
Send an image message using the send_image
method:
image_link = "https://example.com/image.jpg"
whatsapp.send_image(image_link, "recipient_phone_number")
For more detailed usage and information, please refer to the official documentation in the code lol
This project is licensed under the MIT License.
FAQs
WhatsApp Cloud API is complicated, Twilio is expensive, PyGwan is the opposite of both. Free & Intuitive! ~ Tarmica Chiwara.
We found that pygwan 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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.