Giter Club home page Giter Club logo

whatsapi-flask-webhook's Introduction

WhatsApp Cloud API Webhooks Sample Coded using Flask

These is the sample Webhook Flask app for WhatsApp Cloud API. You can read more from Webhooks product, powered by Flask on Heroku.

  1. Heyoo - Unofficial python wrapper to WhatsApp Cloud API.

Setup

WhatsApp Cloud API Webhooks

  1. Deploy the sample app on Heroku with this button:

    Deploy

  2. After Clicking the deploy button you will be required to login to Heroku to continue specifying the app name and region, then Click Deploy App button.

    Preview

  3. Clicking the Deploy button will start building your app now sit back and relax while Heroku platform builds and deploy your application automatically. You can even see the progress of the build.

    Preview

  4. When Heroku has completed deploying your application sucessfully, you will be presented with two buttons at the button, Click the one that says Manage App

    Preview

  5. Go to the Settings > Reveal Config Vars, for the key TOKEN just input any random string of characters in this field no worries, and as for APP_SECRET here input you application Secter you can get this from the Facebook Developer's Dashboard.

    ๐Ÿ“Œ๐Ÿ“ŒHere's is an article on how to get your APP_SECRET from Facebook

    Preview

    Preview

  6. When you have finished, click Open app at the top right corner of you dashboard to go to you application, you will presented with simple status that "Hello, It Works"

    Preview

    Preview

  7. Now your Callback url will be located at /whatsapi at the end of you apllication url, example https://heyoo-api.herokuapp.com/whatsapi

    Preview

  8. Set up your client's [subscription] using your https://<your-subdomain>.herokuapp.com/whatsapi as the callback URL. It is recommended that you set a TOKEN and APP_SECRET config var as part of the set up of your Heroku app to secure requests. If you choose not to set a config var, then you will need to set a verify token of 'token' when configuring the callback URL.

Contributions

All the contributions are valued and welcomed to make this package better for everyone. You can contribute on better documentations, code refactoring and optimaztion or anything you think will add value.

References

  1. WhatsApp Cloud API official documentation
  2. Heyoo WhatsApp API Python Wrapper
  3. Create a Facebook App ID App Secret

Related WhatsApp Cloud API Wrappers

  1. Heyoo Python
  2. WhatsApp Cloud API PHP Wrapper
  3. Heyoo Javascript

All the credit

  1. Jaxparrow
  2. kalebu
  3. Other Contributors

whatsapi-flask-webhook's People

Contributors

jaxparrow avatar medcheck247 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

whatsapi-flask-webhook's Issues

invalid token problem

hi i am getting Invalid verification token when adding /whatsapi to m heroku url
i really need help

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.