• HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    Menu
    • HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    Get in touch
    Get in touch
    Menu
    • HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    • Sign in
    • Start free trial
    • Get in touch
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    • Documentation
      • Home
      • Read API
      • Write API
      • Plugin Development
    1. Home
    2. Tags
    3. api
    Log in to post
    • All categories
    • Sebastián Cisneros

      How to call API from client side.
      Plugin Development • api client side javascript • • Sebastián Cisneros

      3
      0
      Votes
      3
      Posts
      75
      Views

      Sebastián Cisneros

      @PitaJ said in How to call API from client side.:

      require(['api', 'translator'], (api, translator) => {
      // Your code here
      });

      genius! and fast reply!

    • Sebastián Cisneros

      custom plugin with custom POST url
      Plugin Development • post api plugin • • Sebastián Cisneros

      2
      0
      Votes
      2
      Posts
      134
      Views

      julian

      @sebastián-cisneros In static:api.routes, you'll want to call controllerHelpers.setupAPIRoute to mount the route to the appropriate /api/v3/plugins mount point.

      You can see an example of how we do it in the quickstart plugin

    • Sebastián Cisneros

      Is is posible to modify the json output of any of the READ API endpoints?
      Plugin Development • api read api endpoints json • • Sebastián Cisneros

      2
      0
      Votes
      2
      Posts
      60
      Views

      baris

      Yes, every page has a build hook based on the template it renders filter:<templateName>.build. In your case it would be filter:account/topics.build

    • Sebastián Cisneros

      how can I check if a user is querying this through API and with a valid bearer token?
      Plugin Development • token plugin bearer token api • • Sebastián Cisneros

      9
      0
      Votes
      9
      Posts
      253
      Views

      Sebastián Cisneros

      @julian I will give it a try, Thanks so much.

    • phenomlab

      Unsolved Using API to create posts and topics
      Technical Support • api • • phenomlab

      3
      0
      Votes
      3
      Posts
      153
      Views

      phenomlab

      @antosik excellent. Thanks very much.

    • dogs

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

      1
      0
      Votes
      1
      Posts
      158
      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
      121
      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 [email protected] 🙂

    • L

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

      8
      0
      Votes
      8
      Posts
      995
      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
      1497
      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
      3435
      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 write-api curl token • • Tanguy Bodin-Hullin

      14
      0
      Votes
      14
      Posts
      5925
      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
      3403
      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 ns-plugin extended • • Nicolas

      1
      2
      Votes
      1
      Posts
      1610
      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
      3083
      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 • upload sockets drag-n-drop api • • Nicolas

      1
      0
      Votes
      1
      Posts
      1180
      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 • plugin api • • akumbhare

      6
      0
      Votes
      6
      Posts
      2642
      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
      1736
      Views

      Schamper

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

    • babaggeii

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

      12
      0
      Votes
      12
      Posts
      5249
      Views

      julian

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

    Get Started

    • Product
    • Pricing

    Resources

    • Demo Site
    • Answers
    • Docs
    • Bug Bounty

    Company

    • About
    • Blog
    • Contact
    Start Free Trial
    Github Facebook Instagram Twitter
    © 2014 – 2022 NodeBB, Inc. — Made in Canada.
    • Terms
    • Privacy
    • GDPR
    • DMCA
    • Contact
    Menu
    • Terms
    • Privacy
    • GDPR
    • DMCA
    • Contact