It looks like you are making GET calls to those endpoints. They do not accept the GET method.
Check the method in the documentation, likely it's one of POST or PUT.
Is there any way to publish content without click "new topic" button and copy paste?
Say I have a post like:
{
title: "title",
content: "test content",
category: "category1"
tags: ['tag1', "tag2"]
}
in python, Can I send a post request to nodebb to save this post? or write it directly to mongoDb?
Thanks!
@deha: I agree, with the write api plugin you should be able to solve your problem. There is even a python library available: https://pypi.python.org/pypi/pynodebb/. It is quite old but still works with up to date nodebb. Unfortunately, not all api calls are yet implemented, but it is easy (and quite obvious) to extend it.
@frgilb said in Publish content/post from other apps?:
@deha: I agree, with the write api plugin you should be able to solve your problem. There is even a python library available: https://pypi.python.org/pypi/pynodebb/. It is quite old but still works with up to date nodebb. Unfortunately, not all api calls are yet implemented, but it is easy (and quite obvious) to extend it.
@baris said in Publish content/post from other apps?:
Take a look at https://github.com/NodeBB/nodebb-plugin-write-api
Thanks, helpful.