Hey everyone! I’d like to develop some applications that use the Discourse API https://docs.discourse.org/ to allow uesrs to generate / interact with content from places like the command line. It looks like a user with the admin panel can create a site wide api key, but then with a little extra tweaks can also create an endpoint so that a user can request one (see here https://meta.discourse.org/t/discourse-api-authentication/25941). Has anyone thought about this and would it be possible?
Hey, so we did this! First we created the endpoint for a user to request an access token, this pull request here https://github.com/discourse/discourse/pull/6840 and then (as an example) I added a discourse endpoint to the helpme client, here https://vsoch.github.io/helpme/helper-discourse. If you are a developer interested in seeing how it works (to develop your own applications to interact with discourse) then see the code base at https://www.github.com/vsoch/helpme.
This seems incredibly cool. Is there a live instance of helpme running that can interact with our Ask.CI Discourse installation?
Helpme is a command line client, so you (as a user) install it with pip and then can use it. It doesn’t need to have any server / instance running.