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

Webhook #3775

Closed
thejeshgn opened this issue Jan 21, 2020 · 1 comment
Closed

Webhook #3775

thejeshgn opened this issue Jan 21, 2020 · 1 comment

Comments

@thejeshgn
Copy link

thejeshgn commented Jan 21, 2020

Send the events with json data to a given url. This will reduce the custom API implementations like gpodder and make it more generic. Anyone can implement the server part.

Example: played event

{
    "specversion" : "1.0",
    "type" : "played",
    "source" : "antennapod",
    "id" : "A234-1234-1234", 
    "time" : "2018-04-05T17:31:00Z",
"datacontenttype" : "application/json",
    "data" : {
"episode":{
         "title":"Title of podcast episode",
         "url":"url of the episode",
         "media":"url of the media",
},
"podcast":{
   "title":"podcast title",
   "feed":"feed url"
}


     }
}
@ByteHamster
Copy link
Member

This is a very technical feature that most users do not understand. It is really time-consuming to implement because we would need to handle network loss and failed hooks. You can already change the URL of the gpodder instance and their API is documented. You can build a server with the same API that just uses the played event or host gpodder yourself.

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

No branches or pull requests

2 participants