• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.4.2 Latest
Buy Hosting
    • All categories
    Load new posts
Log in to post
  • FrankMF

    API logins counted?

    Scheduled Pinned Locked Moved Unsolved Technical Support api
    0 Votes
    2 Posts
    65 Views
    barisB

    Since the api calls the standard login controller https://github.com/NodeBB/NodeBB/blob/master/src/controllers/write/utilities.js#L32 it behaves the same as someone going to /login and logging in.

  • Varun Ganesh DV

    Problem with User registration through API

    Scheduled Pinned Locked Moved Unsolved Technical Support api user registration write api
    0 Votes
    3 Posts
    185 Views
    Varun Ganesh DV

    @julian
    for login api/v3/utilities/login
    For registration /api/v3/users POST Method

    Which should be used? For just auth system i required to use in another application!
    I just add some feature there which should be available only for authenticated user.
    Same user should be able to login in forum also with same credentials

  • Sebastián CisnerosS

    How to call API from client side.

    Scheduled Pinned Locked Moved Plugin Development api client side javascript
    0 Votes
    3 Posts
    373 Views
    Sebastián CisnerosS

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

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

    genius! and fast reply!

  • Sebastián CisnerosS

    custom plugin with custom POST url

    Scheduled Pinned Locked Moved Plugin Development post api plugin
    0 Votes
    2 Posts
    404 Views
    julianJ

    @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 CisnerosS

    Is is posible to modify the json output of any of the READ API endpoints?

    Scheduled Pinned Locked Moved Plugin Development api read api endpoints json
    0 Votes
    2 Posts
    213 Views
    barisB

    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 CisnerosS

    how can I check if a user is querying this through API and with a valid bearer token?

    Scheduled Pinned Locked Moved Plugin Development token plugin bearer token api
    2 Votes
    11 Posts
    910 Views
    julianJ

    @Yve-Salazar Are you still looking to distinguish between API calls via curl?

  • phenomlabP

    Using API to create posts and topics

    Scheduled Pinned Locked Moved Unsolved Technical Support api
    0 Votes
    3 Posts
    597 Views
    phenomlabP

    @antosik excellent. Thanks very much.

  • dogsD

    Write-API post as a Guest?

    Scheduled Pinned Locked Moved NodeBB Plugins nodebb write-api api request plugin
    0 Votes
    1 Posts
    341 Views
    dogsD

    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.

  • kientructayhoK

    Translate api

    Scheduled Pinned Locked Moved Technical Support api
    0 Votes
    2 Posts
    284 Views
    julianJ

    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

    Scheduled Pinned Locked Moved Technical Support api category template
    0 Votes
    8 Posts
    1k Views
    PitaJP

    @loopynid here's a better resource: BenchpressJS docs

  • L

    Get a list of recent topics though the API

    Scheduled Pinned Locked Moved Technical Support api
    0 Votes
    2 Posts
    2k Views
    julianJ

    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

    Scheduled Pinned Locked Moved Feature Requests api
    0 Votes
    7 Posts
    4k 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-HullinT

    [nodebb-plugin-write-api] Trouble when trying to add new user using the Write-API Plugin and CURL

    Scheduled Pinned Locked Moved Technical Support api write-api curl token
    0 Votes
    14 Posts
    6k Views
    Tanguy Bodin-HullinT

    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 CosminC

    Write API not working

    Scheduled Pinned Locked Moved Technical Support api write-api
    0 Votes
    11 Posts
    4k Views
    Coman CosminC

    @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

  • NicolasN

    [nodebb-plugin-ns-api] NS API Extended

    Scheduled Pinned Locked Moved NodeBB Plugins api ns-plugin extended
    2 Votes
    1 Posts
    2k Views
    NicolasN
    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
  • NicolasN

    API: Groups

    Scheduled Pinned Locked Moved Solved Plugin Development api groups uid
    0 Votes
    6 Posts
    3k Views
    NicolasN

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

  • NicolasN

    Upload API

    Scheduled Pinned Locked Moved Plugin Development upload sockets drag-n-drop api
    0 Votes
    1 Posts
    1k Views
    NicolasN

    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 😉

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
  • Login

  • Don't have an account? Register

  • Login or register to search.