Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. Tags
    3. api
    Log in to post
    • dogs

      Write-API post as a Guest?
      NodeBB Plugins • api nodebb plugin request write-api • • dogs

      1
      0
      Votes
      1
      Posts
      58
      Views

      dogs

      Hey!

      Is it possible to post as Guest via the write API?

      I tried to reply to a topic via:

      const bodyParameters = { _uid: 0, content: "It works!" };

      But it does not work. Is it possible to post as a Guest and set a username with the request or is it only possible to use the write api with a existing uid?

      Looking forward to your answers.

    • kientructayho

      Translate api
      Technical Support • api • • kientructayho

      2
      0
      Votes
      2
      Posts
      22
      Views

      julian

      Hi there -- not at present, no... however there's no reason why that can't be developed if you're interested in sponsoring the work. Reach out to us at sales@nodebb.org 🙂

    • L

      category template accessing topic from API
      Technical Support • api category template • • loopyNid

      8
      0
      Votes
      8
      Posts
      864
      Views

      PitaJ

      @loopynid here's a better resource: BenchpressJS docs

    • L

      Get a list of recent topics though the API
      Technical Support • api • • lukaskollmer

      2
      0
      Votes
      2
      Posts
      1351
      Views

      julian

      If you go into the ACP and change the behaviour of teaser to "first", then the API will return data for the original post only.

    • S

      Unread topics for a specific user with API
      Feature Requests • api • • seb

      7
      0
      Votes
      7
      Posts
      3299
      Views

      S

      No ideas? 😞

      The link to the source of the plugin is : nodebb-plugin-ns-login

      I want to replace the res.json(user); line 103 by the total unread for the user... but i'm not familiar with nodebb code architecture and don't know how to get this value... i hope somebody can help me^^

    • Tanguy Bodin-Hullin

      [nodebb-plugin-write-api] Trouble when trying to add new user using the Write-API Plugin and CURL
      Technical Support • api curl token write-api • • Tanguy Bodin-Hullin

      14
      0
      Votes
      14
      Posts
      5566
      Views

      Tanguy Bodin-Hullin

      Thank you.
      I did disable the option in the API-write module, and now it's working in a shell terminal when I send the above CURL command.
      But when I try to use CURL in HTTPS within my PHP program,
      I get this message (401) : A valid login session was not found. Please log in and try again.
      I don't understand why I get this message, because :

      I'm sending the Master token in the Header by calling the PHP function curl_setopt with the option CURLOPT_HTTPHEADER I try to send the credentials (login/password) by calling the PHP function curl_setopt with the option CURLOPT_USERPWD and login/password.
    • Coman Cosmin

      Write API not working
      Technical Support • api write-api • • Coman Cosmin

      11
      0
      Votes
      11
      Posts
      3104
      Views

      Coman Cosmin

      @pitaj said:

      npm install

      It works now. Thanks a lot for your help. Would have never figured out by myself:)

      Awesome idea with this API btw, i almost gave up because i'm not familiar with nodejs, but when i found this plugin i realised that this is no longer an issue:)

      Great work guys

    • Nicolas

      [nodebb-plugin-ns-api] NS API Extended
      NodeBB Plugins • api extended ns-plugin • • Nicolas

      1
      2
      Votes
      1
      Posts
      1521
      Views

      Nicolas

      Nodebb: API Extended

      Just additional methods for the API.

      Install

      Install it via ACP or you can install it from NPM:

      npm install nodebb-plugin-ns-api

      Important note: extended API uses Write API tokens. It means, you should install write-api plugin and configure it.

      LInks Plugin API Issues
    • Nicolas

      SOLVED API: Groups
      Plugin Development • api groups uid • • Nicolas

      6
      0
      Votes
      6
      Posts
      2893
      Views

      Nicolas

      Created a small plugin, to have access to all groups - https://community.nodebb.org/topic/4591/nodebb-plugin-ns-api-ns-api-extended

    • Nicolas

      Upload API
      Plugin Development • api drag-n-drop sockets upload • • Nicolas

      1
      0
      Votes
      1
      Posts
      1128
      Views

      Nicolas

      I will need upload functional in future plugin.
      Is there any Upload API already in NodeBB ready for plugins use?
      I would like to use ready to use solution, if any, before I will do it myself 😉

    • A

      Need API to get "Post object by passing only post id"
      NodeBB Plugins • api plugin • • akumbhare

      6
      0
      Votes
      6
      Posts
      2537
      Views

      julian

      @akumbhare It will be available in v0.7.0.

    • A

      nodebb API support?
      NodeBB Development • api • • Ashwin Kumar

      2
      0
      Votes
      2
      Posts
      1648
      Views

      Schamper

      @julianlam is already working on this, see this topic.

    • babaggeii

      Is there a full CRUD Api in the vision?
      NodeBB Development • api crud • • babaggeii

      12
      0
      Votes
      12
      Posts
      5132
      Views

      julian

      @esfandiar Yes, take a look at the write API plugin.

    • trevor

      Fetching recent topics from same category?
      NodeBB Development • api topics • • trevor

      10
      0
      Votes
      10
      Posts
      3868
      Views

      trevor

      Well, no that doesn't work either as it just shows '{category_id}' in the console with no ID #. Rather interesting.

    • G

      Brainstorm Session: Authenticate Against NodeBB Users
      General Discussion • api authentication • • Guiri

      2
      0
      Votes
      2
      Posts
      1771
      Views

      julian

      Hmm... there's always /nickserv identify, but I have absolutely zero idea how that even works.

      What if you made your own bot that listened for private messages from users, and verified them? So all I had to do was /yourbot julian hunter2?

      Then your bot would probably communicate with a companion plugin on our end to verify users by username/password... There's a possibly MITM issue present if you don't use HTTPS though... less so if everything is on one machine and you're communicating via localhost connections...

    • G

      Using NodeBB as a subsystem
      NodeBB Development • api protocol • • guava01

      1
      0
      Votes
      1
      Posts
      1296
      Views

      G

      We have a system consisting of several server side Node.js components. We would like to integrate NodeBB in our system as the 'forum' server. Our client do not reside in a browser and they use some external protocol such as XMPP to communicate with our backend server.

      We would have a server component that translates XMPP and then interface with NodeBB. There are two possibilities, one is to run NodeBB in the same Node.js runtime as our server. And the other is to run NodeBB in a separate Node,js runtime and have the server talk to NodeBB using some wire protocol.

      What is the best way to achieve this? We could not find any document regarding any external APIs or protocol that can be used.
      Thanks

    • kud

      NodeBB integration with Tapatalk
      Feature Requests • api integration mobile tapatalk • • kud

      31
      0
      Votes
      31
      Posts
      15836
      Views

      hek

      Shouldn't this request be directed to Taptalk Inc? They seem to charge both the app user and the forum maintainer for "pro" features.

      As this is an open source project, they're free to provide a NodeBB taptalk plugin and earn more money 😉