./Twitter-Integration-Kafka/run.py
func init TwitterIntegrationFunction --python cd TwitterIntegrationFunction
func new --name HttpTrigger --template "HTTP trigger"
func azure functionapp publish TwitterIntegrationFunction
docker-compose exec kafka
kafka-topics --create --topic twitter_data --partitions 1 --replication-factor 1 --if-not-exists --zookeeper zookeeper:2181
BEARER_TOKEN=$(curl -u ':' 'https://api.twitter.com/oauth2/token' --data 'grant_type=client_credentials' | grep -o 'access_token":".*[^"}]' | cut -b16-)
curl -X GET -H "Authorization: Bearer $BEARER_TOKEN" "https://api.twitter.com/labs/1/tweets?ids=1067094924124872705&format=detailed"