Skip to main content

Python for WhatsApp Business Cloud API

Project description

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"
    )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

whatsappy-1.1.0.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

whatsappy-1.1.0-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page