/azure_function_python_sample_01

Azure Function (Python) sample to call API, comparing previously state and send alert message over WhatsApp via Twilio.

Primary LanguagePython

Azure Function (Python) sample to call API, comparing previously state and send alert message over WhatsApp via Twilio.

This is demostration of using Azure Function (Python) to obtain latest number of confirmed COVID-19 cases in particular Hong Kong district from HK Gov Open Data API (Data in Coronavirus Disease (COVID-19) Data.gov.hk). This is basic (Timer Trigger Azure Function to regularly call API, comparing previous state of result and send alert message over WhatsApp via (Twilio).

  • init.py > main function code
  • requirements > required libraries to run this code
  • function.json > timer trigger function configuration

alt text