The discussion is about posting content to a Discourse forum from an external Mac application, Keyboard Maestro. peternlewis wants to allow users to post content, including an uploaded file, with pre-filled fields for category, subject, and content, and would like the login process to be handled seamlessly.
codinghorror points out a pre-existing feature that allows pre-filling a topic via URL, which peternlewis says is close to what they need. However, they mention that it doesn’t currently survive the login process and also doesn’t support file uploads.
codinghorror requests techapj to fix the issue with the login process, which techapj does. peternlewis confirms that the fix works and that they can now post content with uploaded files.
peternlewis shares a demo video showcasing the integration, and riking helps by re-uploading the video to YouTube to make it more accessible.
I looked at the API, but I don’t think it will do what I want (for one thing it requires the user to create an API key which isn’t going to be practical).
What I want to do is have a way for my Mac application (Keyboard Maestro) to allow users to post content (from the application) to the forum. So the user selects a chunk of content, and clicks a button, and the forum opens up with the New Topic fields filled in (category, subject, content, including an uploaded file). The user can then edit the post as they desire before posting it.
Ideally, if the user is not logged in, they would be prompted to login/create an account first, but I could accept that they simply have to be logged in first.
Is there any way to accomplish something like this?
Yep, that is close to what I am after. It would be good if it survived the login process if the user is not yet logged in, but it doesn’t currently
I don’t see how it can be extended to support a file (or image) upload though, so that may be a problem.
Can images/files be uploaded separately via the API? I (obviously) can’t store the master key in the application, but I could probably do something where the application uploaded the file to a web service I define, which in turn uploads it to the forum, and then have the topic body reference that uploaded file. A bit ugly, but perhaps doable. Does the API allow uploading files?