Amazing-Python-Scripts

Форк
0

..
/
Covid India Stats App 
4 года назад
3 года назад
README.md

COVID19 STATS APP FOR INDIAN STATES

This project uses the following API for getting the stats COVID19 STATS

Requirments

  • Flask
  • ngrok: for getting public URL for your local API else deploy in servers like Heroku
  • Facebook page
  • Facebook developer account: for connecting backend with chatbot app

How to use this code ?

  • Create app in developer portal and connect with facebook page
    • Obtain app id
    • Generate token for the page you have linked with the app
  • Install flask and other requirements and run the app
  • Use ngrok like software for creating public URL
  • Add public URL as callback URL in developer portal
  • Edit subscription of your added page and tick the following
    • messages
    • messaging_postbacks
    • messaging_referrals
  • The verification token for this script is "abc".This will be used for verifying the webhook
  • Ensure that you have added the generation token in the step 1 in the code

ACCESS_TOKEN = "random token"

Now send a message from messenger from your facebook page and get corresponding stats

messenger-1

messenger-2

messenger-3

Author

Devika S G

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.