Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/easonlai/azure_function_python_sample_01

Azure Function (Python) sample to call API, comparing previously state and send alert message over WhatsApp via Twilio.
https://github.com/easonlai/azure_function_python_sample_01

api api-rest azure azure-functions azure-functions-python azure-functions-v3 azure-storage covid-19 hongkong python python3 timer-functions twilio twilio-api twilio-python whatsapp

Last synced: 14 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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)](https://data.gov.hk/en-data/dataset/hk-dh-chpsebcddr-novel-infectious-agent) [Data.gov.hk](https://data.gov.hk/en/)). This is basic ([Timer Trigger](https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer?tabs=csharp) Azure Function to regularly call API, comparing previous state of result and send alert message over WhatsApp via ([Twilio](https://www.twilio.com/whatsapp)).

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

![alt text](https://github.com/easonlai/azure_function_python_sample_01/blob/master/git-images/diagram1.PNG)