nou nou wrote: ↑Sat May 04, 2024 1:49 pm
So what do you have in mind as an API?
I work with software that uses python and lua bindings for scripting, so my interest mainly lies there. I can also do everything from cli commands.
How would, for example, posting via the API go? And what about security? Would it require a specific a specific user? Would someone be able to completely flood a database even by some sort of accidental loop?
Maybe too early for some of these questions but sign me up as a tester please
Good questions!
Posting via the API is definitely on the roadmap (currently in my head as it's very early days). You would need to get a forum ID and then a user would be able to post to a forum or more specifically a topic if they have the correct permissions.
Crucially user permissions will be used to ensure that users can only view content and alter it based on if they have the required permissions so standard user's can't go posting stuff into a private admin only forum.
Interacting with the API will be done via an API key that will need to be created at some point. Again, it's very early in the development lifecycle so I may change things as I go to see what works better. There will also be rate limits as well to prevent floods. Again, the built in flood limit is a good starting point for that anyway.
The idea behind this extension is that firstly, phpBB needs an API but secondly, it means people could end up doing some really cool off-site work with their forums. An example being the ability to have a live 'now playing' profile field for Spotify or Apple Music etc... that'd be cool. You could even use it to automate posts after an event is triggered from somewhere. It's an API, it could be used for anything!