Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a callback function for "Verse of the Day" #42

Open
samanyougarg opened this issue Jul 10, 2021 · 3 comments
Open

Create a callback function for "Verse of the Day" #42

samanyougarg opened this issue Jul 10, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@samanyougarg
Copy link
Member

samanyougarg commented Jul 10, 2021

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 samanyougarg added the enhancement New feature or request label Jul 10, 2021
@samanyougarg
Copy link
Member Author

Depends on #43

@devkapilbansal
Copy link

Hi @samanyougarg ,
I want to work on this issue

@Gupta-Anubhav12
Copy link
Member

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants