We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Would it be possible to use pydiscource to create a new Topic? https://docs.discourse.org/#tag/Topics/operation/createTopicPostPM
The text was updated successfully, but these errors were encountered:
As is, no, but it would make sense to add this facility!
Sorry, something went wrong.
Something like this?
--- /home/cheche/git/pydiscourse/src/pydiscourse/client.py.geanyvc.~BASE~ +++ /home/cheche/git/pydiscourse/src/pydiscourse/client.py @@ -724,7 +724,17 @@ topic_id=topic_id, **kwargs ) - + def create_topic( + self, title, raw , topic_id=None, category_id=None, **kwargs + ): + return self._post( + "/posts", + title=title, + raw=raw, + topic_id=topic_id, + category=category_id, + **kwargs + ) def update_topic_status(self, topic_id, status, enabled, **kwargs): """ Open or close a topic
More or less!
No branches or pull requests
Would it be possible to use pydiscource to create a new Topic?
https://docs.discourse.org/#tag/Topics/operation/createTopicPostPM
The text was updated successfully, but these errors were encountered: