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

Community

    • All categories
    There is a new post. Click here to reload.
Log in to post
  • 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
    717 Views

    julianJ

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


  • 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
    6242 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.

  • Login

  • Don't have an account? Register

  • Login or register to search.

  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
  • Login

  • Don't have an account? Register

  • Login or register to search.