SOLVED
Just in case anyone else runs into a similar problem, I was looking at the wrong api urls to get what I needed.
I needed to be getting JSON from the topic data, rather than category or post. Most everything is working now.
😤
Hi,
I 'm using nodebb as a developer's club.
Now I come across a problem which is there's lots of discussion in the social network software. I want to create topic with posts using these dialogs.
Now what I can do to export these dialogs into excel which are like this.
Maybe a script could do this automatically.
What I am thinking is to edit the mongodb directly, but it's too hard to make the database clear to me.
Dear friends, I wonder if you have any ideas to hep me with it.
Thanks.
So you basically want to create a thread an generate fake users and fake comments on that thread in order to boost a positive opinion about nodebb on your community?
Actually he want to make the opposite:
Now what I can do to export these dialogs into excel which are like this.
He wants to get the forum posts and put them into Excel table.
@jarey
No no not the fake one.
the file on excel is just an example.
What I want is to make the dialogs in thread.
Is there any api/script to do this?
@vstoykov
Aha.. Dude,I want make my dialogs into thread.
Not export the posts.
I think you can learn the APIs of NodeBB, write a script to batch import those posts and users from excel, like what I did in this script to create categories from json.
If I am understanding correctly, you have some data in Excel format and want to make topics with posts on NodeBB forum automatically from your Excel tables?
Maybe this API will be helpful: https://github.com/NodeBB/nodebb-plugin-write-api
@vstoykov
yeah I found this write-api plugin.
But there is always something wrong with the installation. After I install the wrire-api, it dosen't show up in the ACP.
I will try to fix this first.
@riddle911
This guy had the same issue about write-api: https://community.nodebb.org/topic/9966/cannot-find-installed-plugins