Skip to content
This repository was archived by the owner on Jun 19, 2021. It is now read-only.
This repository was archived by the owner on Jun 19, 2021. It is now read-only.

Web API and Webhooks in rewrite #25

@perryprog

Description

@perryprog

Assuming we will save all transcriptions in a db in the upcoming rewrite, it would be nice to expose an API that would allow other bots (namely ToR-Stats, soon to be merged with ToR Genius) to do computations and show information about someones transcriptions. Possible endpoints:

  • /:user → Info on a certain Redditor, like total transcriptions, or other info
  • /:user/transcriptions → Get a list of all user transcriptions
  • /:user/transcriptions?extra=true → Get a list of all user transcriptions, including the post contents (so it's easily searchable)

A system like that should be relatively easy to implement, and could also lead to more automation with things like role assigns in Discord.

Another thing to thing about is adding webhooks. Basically we could make a request to a list of URLs when a certain event occurs like "transcription marked done", or "user moved up a transcription rank". This could also help with some automation on the Discord.


All of this is relatively easy to implement, so we can probably add this in v4.0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions