🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

whatsappy

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

whatsappy

Python for WhatsApp Business Cloud API

1.1.0
Maintainers
1

Whatsappy

This is an open sourse package to interact with WhatsApp Business Cloud API using Python.

We are looking for colaborators.

How to Install

pip install whatsappy

or in virtual env

python -m pip install whatsappy

Usage

Text message

    from whatsappy.client import Client

    client = Client(whatsapp_token, phone_number_id)
    response = client.text_message(
        phone_number="56999999999",
        body="my first message"
    )

Interactive button message

    from whatsappy.client import Client

    client = Client(whatsapp_token, phone_number_id)
    response = client.interactive_button_message(
        phone_number="56999999999",
        titles=["button-1", "button-2"]
        body_text="my first button message"
    )

FAQs

Did you know?

Socket

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.

Install

Related posts