heyoo


Nameheyoo JSON
Version 0.1.2 PyPI version JSON
download
home_pagehttps://github.com/Neurotech-HQ/heyoo
SummaryOpensource Python wrapper to WhatsApp Cloud API
upload_time2024-03-09 12:13:30
maintainer
docs_urlNone
authorJordan Kalebu
requires_python>=3.6
licenseMIT
keywords heyoo heyoo-libary whatsapp cloud api wrapper pywhatsapp whatsapp api in python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <samp>

# [heyoo](https://pypi.org/project/heyoo/)

[![Made in Tanzania](https://img.shields.io/badge/made%20in-tanzania-008751.svg?style=flat-square)](https://github.com/Tanzania-Developers-Community/made-in-tanzania)
[![Downloads](https://static.pepy.tech/badge/heyoo)](https://pepy.tech/project/heyoo)
[![Downloads](https://static.pepy.tech/badge/heyoo/month)](https://pepy.tech/project/heyoo)
[![Downloads](https://static.pepy.tech/badge/heyoo/week)](https://pepy.tech/project/heyoo)

Unofficial Python wrapper for the [WhatsApp Cloud API](https://developers.facebook.com/docs/whatsapp/cloud-api)

## Supported features

1. Sending messages
2. Marking messages as read
3. Sending Media (images, audio, video and documents)
4. Sending location
5. Sending interactive buttons
6. Sending template messages
7. Parsing messages and media received

## Getting started

To get started with **heyoo**, you have to firstly install the library either directly or using *pip*.

### Building from source

Use git to clone or you can also manually download the project repository just as shown below;

```bash
$ git clone https://github.com/Neurotech-HQ/heyoo
$ cd heyoo
heyoo $ python setup.py install 
```

### Installing via pip

```bash
# For Windows 

pip install  --upgrade heyoo

#For Linux | MAC 

pip3 install --upgrade heyoo
```

### Running on Docker
To run an instance in docker run the commands below
```bash
$ docker compose build
$ docker compose up
```

## Setting up

To get started using this package, you will need **TOKEN** and **TEST WHATSAPP NUMBER** (the library works either with a production phone number, if you have one) which you can get from the [Facebook Developer Portal](https://developers.facebook.com/)

Here are steps to follow for you to get started:

1. [Go to your apps](https://developers.facebook.com/apps)
2. [create an app](https://developers.facebook.com/apps/create/)
3. Select Business >> Business
4. It will prompt you to enter basic app informations
5. It will ask you to add products to your app
    a. Add WhatsApp Messenger
6. Right there you will see a your **TOKEN** and **TEST WHATSAPP NUMBER** and its phone_number_id
7. Lastly verify the number you will be using for testing on the **To** field.

Once you've followed the above procedures you're ready to start hacking with the Wrapper.

## Authentication

To authenticate your application, you need to specify  the ```TOKEN``` and the ```phone_number_id``` of your application

```python
>>> from heyoo import WhatsApp
>>> messenger = WhatsApp('TOKEN',  phone_number_id='104xxxxxx')
```

Once you have authenticated your app you can start using the above mentioned feature as shown above;

> It is only possible to send messages other than templates only after the target phone responds to an initial template message or sends a message first. This resets every 24 hours; after that, you need to send a template again or the message won't be delivered. Reference: <https://developers.facebook.com/community/threads/425605939396247/>

## Logging

You can configure your own log level. This is an example to set the log level to info. By default only Error messages are logged.

```python
import logging

logging.basicConfig(
    level=logging.INFO,
    format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
)
```

## Sending Messanges

Use this method to send text message to a WhatsApp number.

```python
>>> messenger.send_message('Your message ', 'Mobile eg: 255757xxxxx')
```

## Marking messages as read

Use this method to mark a previously sent text message as read.

```python
>>> messenger.mark_as_read('Message ID')
```
    
## Sending Images

When sending media(image, video, audio, gif and document ), you can either specify a link containing  the media or specify object id, you can do this using the same method.

By default all media methods assume you're sending link containing media but you can change this by specifying the ```link=False```.

Here an example;

```python
>>> messenger.send_image(
        image="https://i.imgur.com/Fh7XVYY.jpeg",
        recipient_id="255757xxxxxx",
    )
```

> Note: You can also send media from your local machine but you have to upload it first to Whatsapp Cloud API, you can do this using the ```upload_media``` method. and then use the returned object id to send the media.

Here an example;

```python
>>> media_id = messenger.upload_media(
        media='path/to/media',
    )['id']
>>> messenger.send_image(
        image=media_id,
        recipient_id="255757xxxxxx",
        link=False
    )
```

> Note: Don't forget to set the link to False, and also you can use the same technique for sending video, audio, gif and document from your local machine.

## Sending Video

Here an example;

```python

>>> messenger.send_video(
        video="https://www.youtube.com/watch?v=K4TOrB7at0Y",
        recipient_id="255757xxxxxx",
    )
```

## Sending Audio

Here an example;

```python
>>> messenger.send_audio(
        audio="https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3",
        recipient_id="255757xxxxxx",
    )
```

## Sending Document

Here an example;

```python
>>> messenger.send_document(
        document="http://www.africau.edu/images/default/sample.pdf",
        recipient_id="255757xxxxxx",
    )
```

## Sending Location

Here an example;

```python
>>> messenger.send_location(
        lat=1.29,
        long=103.85,
        name="Singapore",
        address="Singapore",
        recipient_id="255757xxxxxx",
    )
```

## Sending Interactive buttons

Here an example;

> Note: row button title may not exceed 20 characters otherwise your message will not be sent to the target phone.

```python
>>> messenger.send_button(
        recipient_id="255757xxxxxx",
        button={
            "header": "Header Testing",
            "body": "Body Testing",
            "footer": "Footer Testing",
            "action": {
                "button": "Button Testing",
                "sections": [
                    {
                        "title": "iBank",
                        "rows": [
                            {"id": "row 1", "title": "Send Money", "description": ""},
                            {
                                "id": "row 2",
                                "title": "Withdraw money",
                                "description": "",
                            },
                        ],
                    }
                ],
            },
        },
    )
```

## Sending Interactive reply buttons

Here an example;

> Send reply button only displays three reply buttons, if it exceeds three reply buttons, it will raise an error and your message will not be sent.

```python
>>> messenger.send_reply_button(
        recipient_id="255757xxxxxx",
        button={
            "type": "button",
            "body": {
                "text": "This is a test button"
            },
            "action": {
                "buttons": [
                    {
                        "type": "reply",
                        "reply": {
                            "id": "b1",
                            "title": "This is button 1"
                        }
                    },
                    {
                        "type": "reply",
                        "reply": {
                            "id": "b2",
                            "title": "this is button 2"
                        }
                    }
                ]
            }
      },
    )
```

## Sending a Template Messages
  
Here how to send a pre-approved template message, Template messages can either be;

1. Text template
2. Media based template
3. Interactive template

You can customize the template message by passing a dictionary of components.

    
IMPORTANT: components are also known as variable parameters (like `{{0}}` or `{{1}}`) which are used to include variables into a message.
You can find the available components in the documentation.
<https://developers.facebook.com/docs/whatsapp/cloud-api/guides/send-message-templates>

```python
>>> messenger.send_template("hello_world", "255757xxxxxx", components=[], lang="en_US")
```
`lang` is optional but required when sending templates in other languages.

## Webhook

Webhook are useful incase you're wondering how to respond to incoming message send by user, but I have created a [starter webhook](https://github.com/Neurotech-HQ/heyoo/blob/main/hook.py) which you can then customize it according to your own plans.

Here an example on how you can use webhook to respond to incoming messages;

```python
  # Handle Webhook Subscriptions
    data = request.get_json()
    logging.info("Received webhook data: %s", data)
    changed_field = messenger.changed_field(data)
    if changed_field == "messages":
        new_message = messenger.get_mobile(data)
        if new_message:
            mobile = messenger.get_mobile(data)
            name = messenger.get_name(data)
            message_type = messenger.get_message_type(data)
            logging.info(
                f"New Message; sender:{mobile} name:{name} type:{message_type}"
            )
            if message_type == "text":
                message = messenger.get_message(data)
                name = messenger.get_name(data)
                logging.info("Message: %s", message)
                messenger.send_message(f"Hi {name}, nice to connect with you", mobile)

            elif message_type == "interactive":
                message_response = messenger.get_interactive_response(data)
                interactive_type = message_response.get("type")
                message_id = message_response[interactive_type]["id"]
                message_text = message_response[interactive_type]["title"]
                logging.info(f"Interactive Message; {message_id}: {message_text}")

            elif message_type == "location":
                message_location = messenger.get_location(data)
                message_latitude = message_location["latitude"]
                message_longitude = message_location["longitude"]
                logging.info("Location: %s, %s", message_latitude, message_longitude)

            elif message_type == "image":
                image = messenger.get_image(data)
                image_id, mime_type = image["id"], image["mime_type"]
                image_url = messenger.query_media_url(image_id)
                image_filename = messenger.download_media(image_url, mime_type)
                print(f"{mobile} sent image {image_filename}")
                logging.info(f"{mobile} sent image {image_filename}")

            elif message_type == "video":
                video = messenger.get_video(data)
                video_id, mime_type = video["id"], video["mime_type"]
                video_url = messenger.query_media_url(video_id)
                video_filename = messenger.download_media(video_url, mime_type)
                print(f"{mobile} sent video {video_filename}")
                logging.info(f"{mobile} sent video {video_filename}")

            elif message_type == "audio":
                audio = messenger.get_audio(data)
                audio_id, mime_type = audio["id"], audio["mime_type"]
                audio_url = messenger.query_media_url(audio_id)
                audio_filename = messenger.download_media(audio_url, mime_type)
                print(f"{mobile} sent audio {audio_filename}")
                logging.info(f"{mobile} sent audio {audio_filename}")

            elif message_type == "document":
                file = messenger.get_document(data)
                file_id, mime_type = file["id"], file["mime_type"]
                file_url = messenger.query_media_url(file_id)
                file_filename = messenger.download_media(file_url, mime_type)
                print(f"{mobile} sent file {file_filename}")
                logging.info(f"{mobile} sent file {file_filename}")
            else:
                print(f"{mobile} sent {message_type} ")
                print(data)
        else:
            delivery = messenger.get_delivery(data)
            if delivery:
                print(f"Message : {delivery}")
            else:
                print("No new message")
    return "ok"
```

Incase you want a hustle free automatic deployment of the webhook to the Heroku platform, then we have made it simpler for you. With Just a click of a button you can deploy your webhook to Heroku.

## steps to Deploy webhook to Heroku

1. Click the deploy button and the Heroku webpage will open for authentication, after authentication sit back and relax for deployment to finish.
                             [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/JAXPARROW/whatsapi-flask-webhook)

2. From Heroku settings configure your Environment varibles of your WhatsAapp application.
3. Setup and verify your webhook url and token then subscribe to messages.

To learn more about webhook and how to configure in your Facebook developer dashboard please [have a look here](https://developers.facebook.com/docs/whatsapp/cloud-api/guides/set-up-webhooks).


## Issues

If you will face any issue with the usage of this package please raise one so as we can quickly fix it as soon as possible;

## Contributing

This is an opensource project under ```MIT License``` so any one is welcome to contribute from typo to source code or documentation, ```JUST FORK IT```.

## References

1. [WhatsApp Cloud API official documentation](https://developers.facebook.com/docs/whatsapp/cloud-api/)
2. [Programming WhatsApp is now even easier for Python Developers](https://mr-collins-llb.medium.com/programming-whatsapp-is-now-even-easier-for-python-developers-e1a4343deed6)
3. [Meet Heyoo — an Open-source Python Wrapper for WhatsApp Cloud API](https://betterprogramming.pub/programming-whatsapp-is-now-even-easier-for-python-developers-e1a4343deed6)
4. [Whatsapp Cloud API: How to send WhatsApp messages from Python?](https://medium.com/@today.rafi/whatsapp-cloud-api-how-to-send-whatsapp-messages-from-python-9baa03c93b5d)

## Related

1. [WhatsApp Cloud API PHP Wrapper](https://github.com/pro-cms/whatsappcloud-php)
2. [Heyoo Javascript](https://github.com/JS-Hub-ZW/heyooh)

## All the credit

1. [kalebu](https://github.com/Kalebu)
2. All other contributors
</samp>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Neurotech-HQ/heyoo",
    "name": "heyoo",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "heyoo,heyoo-libary,WhatsApp Cloud API Wrapper,PyWhatsApp,WhatsApp API in Python",
    "author": "Jordan Kalebu",
    "author_email": "isaackeinstein@gmail.com",
    "download_url": "https://github.com/Neurotech-HQ/heyoo/archive/refs/tags/v0.4.tar.gz",
    "platform": null,
    "description": "<samp>\n\n# [heyoo](https://pypi.org/project/heyoo/)\n\n[![Made in Tanzania](https://img.shields.io/badge/made%20in-tanzania-008751.svg?style=flat-square)](https://github.com/Tanzania-Developers-Community/made-in-tanzania)\n[![Downloads](https://static.pepy.tech/badge/heyoo)](https://pepy.tech/project/heyoo)\n[![Downloads](https://static.pepy.tech/badge/heyoo/month)](https://pepy.tech/project/heyoo)\n[![Downloads](https://static.pepy.tech/badge/heyoo/week)](https://pepy.tech/project/heyoo)\n\nUnofficial Python wrapper for the [WhatsApp Cloud API](https://developers.facebook.com/docs/whatsapp/cloud-api)\n\n## Supported features\n\n1. Sending messages\n2. Marking messages as read\n3. Sending Media (images, audio, video and documents)\n4. Sending location\n5. Sending interactive buttons\n6. Sending template messages\n7. Parsing messages and media received\n\n## Getting started\n\nTo get started with **heyoo**, you have to firstly install the library either directly or using *pip*.\n\n### Building from source\n\nUse git to clone or you can also manually download the project repository just as shown below;\n\n```bash\n$ git clone https://github.com/Neurotech-HQ/heyoo\n$ cd heyoo\nheyoo $ python setup.py install \n```\n\n### Installing via pip\n\n```bash\n# For Windows \n\npip install  --upgrade heyoo\n\n#For Linux | MAC \n\npip3 install --upgrade heyoo\n```\n\n### Running on Docker\nTo run an instance in docker run the commands below\n```bash\n$ docker compose build\n$ docker compose up\n```\n\n## Setting up\n\nTo get started using this package, you will need **TOKEN** and **TEST WHATSAPP NUMBER** (the library works either with a production phone number, if you have one) which you can get from the [Facebook Developer Portal](https://developers.facebook.com/)\n\nHere are steps to follow for you to get started:\n\n1. [Go to your apps](https://developers.facebook.com/apps)\n2. [create an app](https://developers.facebook.com/apps/create/)\n3. Select Business >> Business\n4. It will prompt you to enter basic app informations\n5. It will ask you to add products to your app\n    a. Add WhatsApp Messenger\n6. Right there you will see a your **TOKEN** and **TEST WHATSAPP NUMBER** and its phone_number_id\n7. Lastly verify the number you will be using for testing on the **To** field.\n\nOnce you've followed the above procedures you're ready to start hacking with the Wrapper.\n\n## Authentication\n\nTo authenticate your application, you need to specify  the ```TOKEN``` and the ```phone_number_id``` of your application\n\n```python\n>>> from heyoo import WhatsApp\n>>> messenger = WhatsApp('TOKEN',  phone_number_id='104xxxxxx')\n```\n\nOnce you have authenticated your app you can start using the above mentioned feature as shown above;\n\n> It is only possible to send messages other than templates only after the target phone responds to an initial template message or sends a message first. This resets every 24 hours; after that, you need to send a template again or the message won't be delivered. Reference: <https://developers.facebook.com/community/threads/425605939396247/>\n\n## Logging\n\nYou can configure your own log level. This is an example to set the log level to info. By default only Error messages are logged.\n\n```python\nimport logging\n\nlogging.basicConfig(\n    level=logging.INFO,\n    format=\"%(asctime)s - %(name)s - %(levelname)s - %(message)s\",\n)\n```\n\n## Sending Messanges\n\nUse this method to send text message to a WhatsApp number.\n\n```python\n>>> messenger.send_message('Your message ', 'Mobile eg: 255757xxxxx')\n```\n\n## Marking messages as read\n\nUse this method to mark a previously sent text message as read.\n\n```python\n>>> messenger.mark_as_read('Message ID')\n```\n    \n## Sending Images\n\nWhen sending media(image, video, audio, gif and document ), you can either specify a link containing  the media or specify object id, you can do this using the same method.\n\nBy default all media methods assume you're sending link containing media but you can change this by specifying the ```link=False```.\n\nHere an example;\n\n```python\n>>> messenger.send_image(\n        image=\"https://i.imgur.com/Fh7XVYY.jpeg\",\n        recipient_id=\"255757xxxxxx\",\n    )\n```\n\n> Note: You can also send media from your local machine but you have to upload it first to Whatsapp Cloud API, you can do this using the ```upload_media``` method. and then use the returned object id to send the media.\n\nHere an example;\n\n```python\n>>> media_id = messenger.upload_media(\n        media='path/to/media',\n    )['id']\n>>> messenger.send_image(\n        image=media_id,\n        recipient_id=\"255757xxxxxx\",\n        link=False\n    )\n```\n\n> Note: Don't forget to set the link to False, and also you can use the same technique for sending video, audio, gif and document from your local machine.\n\n## Sending Video\n\nHere an example;\n\n```python\n\n>>> messenger.send_video(\n        video=\"https://www.youtube.com/watch?v=K4TOrB7at0Y\",\n        recipient_id=\"255757xxxxxx\",\n    )\n```\n\n## Sending Audio\n\nHere an example;\n\n```python\n>>> messenger.send_audio(\n        audio=\"https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3\",\n        recipient_id=\"255757xxxxxx\",\n    )\n```\n\n## Sending Document\n\nHere an example;\n\n```python\n>>> messenger.send_document(\n        document=\"http://www.africau.edu/images/default/sample.pdf\",\n        recipient_id=\"255757xxxxxx\",\n    )\n```\n\n## Sending Location\n\nHere an example;\n\n```python\n>>> messenger.send_location(\n        lat=1.29,\n        long=103.85,\n        name=\"Singapore\",\n        address=\"Singapore\",\n        recipient_id=\"255757xxxxxx\",\n    )\n```\n\n## Sending Interactive buttons\n\nHere an example;\n\n> Note: row button title may not exceed 20 characters otherwise your message will not be sent to the target phone.\n\n```python\n>>> messenger.send_button(\n        recipient_id=\"255757xxxxxx\",\n        button={\n            \"header\": \"Header Testing\",\n            \"body\": \"Body Testing\",\n            \"footer\": \"Footer Testing\",\n            \"action\": {\n                \"button\": \"Button Testing\",\n                \"sections\": [\n                    {\n                        \"title\": \"iBank\",\n                        \"rows\": [\n                            {\"id\": \"row 1\", \"title\": \"Send Money\", \"description\": \"\"},\n                            {\n                                \"id\": \"row 2\",\n                                \"title\": \"Withdraw money\",\n                                \"description\": \"\",\n                            },\n                        ],\n                    }\n                ],\n            },\n        },\n    )\n```\n\n## Sending Interactive reply buttons\n\nHere an example;\n\n> Send reply button only displays three reply buttons, if it exceeds three reply buttons, it will raise an error and your message will not be sent.\n\n```python\n>>> messenger.send_reply_button(\n        recipient_id=\"255757xxxxxx\",\n        button={\n            \"type\": \"button\",\n            \"body\": {\n                \"text\": \"This is a test button\"\n            },\n            \"action\": {\n                \"buttons\": [\n                    {\n                        \"type\": \"reply\",\n                        \"reply\": {\n                            \"id\": \"b1\",\n                            \"title\": \"This is button 1\"\n                        }\n                    },\n                    {\n                        \"type\": \"reply\",\n                        \"reply\": {\n                            \"id\": \"b2\",\n                            \"title\": \"this is button 2\"\n                        }\n                    }\n                ]\n            }\n      },\n    )\n```\n\n## Sending a Template Messages\n  \nHere how to send a pre-approved template message, Template messages can either be;\n\n1. Text template\n2. Media based template\n3. Interactive template\n\nYou can customize the template message by passing a dictionary of components.\n\n    \nIMPORTANT: components are also known as variable parameters (like `{{0}}` or `{{1}}`) which are used to include variables into a message.\nYou can find the available components in the documentation.\n<https://developers.facebook.com/docs/whatsapp/cloud-api/guides/send-message-templates>\n\n```python\n>>> messenger.send_template(\"hello_world\", \"255757xxxxxx\", components=[], lang=\"en_US\")\n```\n`lang` is optional but required when sending templates in other languages.\n\n## Webhook\n\nWebhook are useful incase you're wondering how to respond to incoming message send by user, but I have created a [starter webhook](https://github.com/Neurotech-HQ/heyoo/blob/main/hook.py) which you can then customize it according to your own plans.\n\nHere an example on how you can use webhook to respond to incoming messages;\n\n```python\n  # Handle Webhook Subscriptions\n    data = request.get_json()\n    logging.info(\"Received webhook data: %s\", data)\n    changed_field = messenger.changed_field(data)\n    if changed_field == \"messages\":\n        new_message = messenger.get_mobile(data)\n        if new_message:\n            mobile = messenger.get_mobile(data)\n            name = messenger.get_name(data)\n            message_type = messenger.get_message_type(data)\n            logging.info(\n                f\"New Message; sender:{mobile} name:{name} type:{message_type}\"\n            )\n            if message_type == \"text\":\n                message = messenger.get_message(data)\n                name = messenger.get_name(data)\n                logging.info(\"Message: %s\", message)\n                messenger.send_message(f\"Hi {name}, nice to connect with you\", mobile)\n\n            elif message_type == \"interactive\":\n                message_response = messenger.get_interactive_response(data)\n                interactive_type = message_response.get(\"type\")\n                message_id = message_response[interactive_type][\"id\"]\n                message_text = message_response[interactive_type][\"title\"]\n                logging.info(f\"Interactive Message; {message_id}: {message_text}\")\n\n            elif message_type == \"location\":\n                message_location = messenger.get_location(data)\n                message_latitude = message_location[\"latitude\"]\n                message_longitude = message_location[\"longitude\"]\n                logging.info(\"Location: %s, %s\", message_latitude, message_longitude)\n\n            elif message_type == \"image\":\n                image = messenger.get_image(data)\n                image_id, mime_type = image[\"id\"], image[\"mime_type\"]\n                image_url = messenger.query_media_url(image_id)\n                image_filename = messenger.download_media(image_url, mime_type)\n                print(f\"{mobile} sent image {image_filename}\")\n                logging.info(f\"{mobile} sent image {image_filename}\")\n\n            elif message_type == \"video\":\n                video = messenger.get_video(data)\n                video_id, mime_type = video[\"id\"], video[\"mime_type\"]\n                video_url = messenger.query_media_url(video_id)\n                video_filename = messenger.download_media(video_url, mime_type)\n                print(f\"{mobile} sent video {video_filename}\")\n                logging.info(f\"{mobile} sent video {video_filename}\")\n\n            elif message_type == \"audio\":\n                audio = messenger.get_audio(data)\n                audio_id, mime_type = audio[\"id\"], audio[\"mime_type\"]\n                audio_url = messenger.query_media_url(audio_id)\n                audio_filename = messenger.download_media(audio_url, mime_type)\n                print(f\"{mobile} sent audio {audio_filename}\")\n                logging.info(f\"{mobile} sent audio {audio_filename}\")\n\n            elif message_type == \"document\":\n                file = messenger.get_document(data)\n                file_id, mime_type = file[\"id\"], file[\"mime_type\"]\n                file_url = messenger.query_media_url(file_id)\n                file_filename = messenger.download_media(file_url, mime_type)\n                print(f\"{mobile} sent file {file_filename}\")\n                logging.info(f\"{mobile} sent file {file_filename}\")\n            else:\n                print(f\"{mobile} sent {message_type} \")\n                print(data)\n        else:\n            delivery = messenger.get_delivery(data)\n            if delivery:\n                print(f\"Message : {delivery}\")\n            else:\n                print(\"No new message\")\n    return \"ok\"\n```\n\nIncase you want a hustle free automatic deployment of the webhook to the Heroku platform, then we have made it simpler for you. With Just a click of a button you can deploy your webhook to Heroku.\n\n## steps to Deploy webhook to Heroku\n\n1. Click the deploy button and the Heroku webpage will open for authentication, after authentication sit back and relax for deployment to finish.\n                             [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/JAXPARROW/whatsapi-flask-webhook)\n\n2. From Heroku settings configure your Environment varibles of your WhatsAapp application.\n3. Setup and verify your webhook url and token then subscribe to messages.\n\nTo learn more about webhook and how to configure in your Facebook developer dashboard please [have a look here](https://developers.facebook.com/docs/whatsapp/cloud-api/guides/set-up-webhooks).\n\n\n## Issues\n\nIf you will face any issue with the usage of this package please raise one so as we can quickly fix it as soon as possible;\n\n## Contributing\n\nThis is an opensource project under ```MIT License``` so any one is welcome to contribute from typo to source code or documentation, ```JUST FORK IT```.\n\n## References\n\n1. [WhatsApp Cloud API official documentation](https://developers.facebook.com/docs/whatsapp/cloud-api/)\n2. [Programming WhatsApp is now even easier for Python Developers](https://mr-collins-llb.medium.com/programming-whatsapp-is-now-even-easier-for-python-developers-e1a4343deed6)\n3. [Meet Heyoo \u2014 an Open-source Python Wrapper for WhatsApp Cloud API](https://betterprogramming.pub/programming-whatsapp-is-now-even-easier-for-python-developers-e1a4343deed6)\n4. [Whatsapp Cloud API: How to send WhatsApp messages from Python?](https://medium.com/@today.rafi/whatsapp-cloud-api-how-to-send-whatsapp-messages-from-python-9baa03c93b5d)\n\n## Related\n\n1. [WhatsApp Cloud API PHP Wrapper](https://github.com/pro-cms/whatsappcloud-php)\n2. [Heyoo Javascript](https://github.com/JS-Hub-ZW/heyooh)\n\n## All the credit\n\n1. [kalebu](https://github.com/Kalebu)\n2. All other contributors\n</samp>\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Opensource Python wrapper to WhatsApp Cloud API",
    "version": "0.1.2",
    "project_urls": {
        "Download": "https://github.com/Neurotech-HQ/heyoo/archive/refs/tags/v0.4.tar.gz",
        "Homepage": "https://github.com/Neurotech-HQ/heyoo"
    },
    "split_keywords": [
        "heyoo",
        "heyoo-libary",
        "whatsapp cloud api wrapper",
        "pywhatsapp",
        "whatsapp api in python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d6d64e8a17ecdc3a7adf7c2746f4e6792132b447ab53cf56751e89fb0da3ba82",
                "md5": "ff445ba6f96665c93b50c475f5f26059",
                "sha256": "66990f2d2f2c43d42fa0870884c06569118f62ce430be9204eb891ac30de9cfb"
            },
            "downloads": -1,
            "filename": "heyoo-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ff445ba6f96665c93b50c475f5f26059",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 12509,
            "upload_time": "2024-03-09T12:13:30",
            "upload_time_iso_8601": "2024-03-09T12:13:30.366447Z",
            "url": "https://files.pythonhosted.org/packages/d6/d6/4e8a17ecdc3a7adf7c2746f4e6792132b447ab53cf56751e89fb0da3ba82/heyoo-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-09 12:13:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Neurotech-HQ",
    "github_project": "heyoo",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "heyoo"
}
        
Elapsed time: 0.20167s