I think it would be cool to add category description to the Get Recent Topics API. Wondering if I can get that in a backlog somewhere.
Write-enabled API (Brainstorming)
-
I could need a integration of NodeBB to my planned site.
Read topics, boards and user info should be no problem. NodeBB read only API seems to do that job.But is it possible to process login or user registration via API (in the future)? My php application could try to check NodeBB login / user. If NodeBB login via API was successfully also the CMS user gets logged in. If the user doesn't exist at CMS side (not logged in before) an account would be created.
So my website could use NodeBB user backend if login / logout via API will be possible in the future
HTTPS shouldn't be needed because the api call comes from the local machine? -
Have you looked into the blog comments plugin?
-
@julian
Not so far...
Looks nice at NodeBB blog
If I need a comment integration that will be a great solution!But my main site also works with authentification and permissions. So I have to sync login state / user accounts.
The main site is Processwire based and I'm build a login module. So the module (php coded) need to process a NodeBB login and get a result about success.I haven't any experience with nodejs / nodebb coding, so I don't know how it could be done.
-
So I have to sync login state / user accounts.
Have a look at this plugin:
https://github.com/julianlam/nodebb-plugin-sso-oauth
You will likely have to modify it a bit to fit your solution, but it's definitely doable
-
this would be awesome. a write api would allow us to create some nice apps that are integrated with nodebb
-
Thanks @yamill -- this is definitely something that's been on our minds for the next version (not that we're thinking that far ahead yet... still 0.5.0 to be released)
-
@julian that's great news! i really love what you guys are doing with nodebb.
-
Will the planned writeable API include a login / logout (optional Register account) function?
I need something like that to call via PHP or PHP rendered code (JS if client side), because oauth isn't a useable Option.
-
yes..! this would be amazing!!
how's it coming along @julian ?
-
@agarcia17 in have a proof of concept working, though it needs to be fleshed out a bit.
I'm currently out of town (speaking at a js event in Calgary!), so I'll make it a focus of mine when I get home assuming nothing else comes up!
-
Would be nice to encode the api at user experience. like restfull.
have a 'createNewCategory' topic inside 'admTool' category, if a mod write a respod with "footbal & rugby" the api create a new category named 'footbal & rugby'.
Each category has a '/proc' topic to acces api funcion over .this category.
to chance my photo i could go to admTool/chPic topic and upload a image.if the api is themeble can pack the adm routine like moderated or not. Can be 'monarchyed', the api just accept the call of the King login.
-
Is there an update on the write API? Would be interesting to see how it's coming along.
-
Just checking to see if there was an update to this. Seems this thread has been dead-ish
-
Sort of got my own answer. though not too clear on it. Repo found here: https://github.com/NodeBB/nodebb-plugin-write-api
-
@baris Please help
nothing happened after save changes again at same screen.