bhagavad-gita-api icon indicating copy to clipboard operation
bhagavad-gita-api copied to clipboard

Create a callback function for "Verse of the Day"

Open samanyougarg opened this issue 3 years ago • 3 comments

Create a callback function that queries the vese_of_the_day table at let's say 6 am IST every day and notifies all the subscribed applications of the latest verse of the day.

We could later use this for our own bots. So, when the API notifies our bots of the latest "Verse of the Day", our bots will parse and post it to the relevant social media channel.

Reference guide: https://fastapi.tiangolo.com/advanced/openapi-callbacks/

samanyougarg avatar Jul 10 '21 04:07 samanyougarg

Depends on #43

samanyougarg avatar Jul 10 '21 04:07 samanyougarg

Hi @samanyougarg , I want to work on this issue

devkapilbansal avatar Oct 02 '22 17:10 devkapilbansal

Hey So basically we've a cron job that posts a verse of the day daily to our Twitter Handle and now we have to make a callback function so that people can subscribe to the daily verse and we send them daily verse, something like a push notification Please find the reference here :- https://fastapi.tiangolo.com/advanced/openapi-callbacks/

Gupta-Anubhav12 avatar Oct 03 '22 06:10 Gupta-Anubhav12