Use "nodebb-plugin-write-api" in PHP
-
Hi,
I am using your plugin "nodebb-plugin-write-api"
https://github.com/julianlam/nodebb-plugin-write-api.In the Quick Start you have mentioned following points :
- Install and activate the plugin, reload NodeBB
- Generate your uid an API token in the ACP page
- curl -H "Authorization: Bearer {YOUR_TOKEN}" --data "title={TITLE}&content={CONTENT}&cid={CID}" http://localhost:4567/api/v1/topics
Now in the #3 point ,I need to make a curl call through PHP page. So can you please guide me how I can use your api through PHP page.
So any help would be greatly appreciated.
Thanks!!! -
Hi, I got the solution for above mentioned question.
Now can you please tell me , when your having plan to add following functionality
- Delete Topics
- Add/ Delete Comments
- Add/delete Reply
Or If possible can you please guide me how I can implement above features. I am now into NodeBB that why I need more help
-
@sadmulwar Hello and welcome to NodeBB community! You on the right way!
As about NodeBB plugins, please feel free to open a new issue for that kind of questions in the plugins' repositories
https://github.com/julianlam/nodebb-plugin-write-api/issues -
Hello @sadmulwar -- I am aware that the write API is incomplete at the moment, but it is good to know that you have gotten it working.
Let me prioritise those routes for the write API. Please ping me again (here or via chat) if I have not done so in the next day or so.
-
@julian
Hi,Actually I need to update timestamps of all "Topics/Reply" using API.
Is that possible ? If yes please let me know how to do that.I found "Topics.updateTimestamp" function into "\src\topics\recent.js", but I do not know how to call into our plugin.