😇How to make the Requests

Here you will learn how to communicate with the API.

You can make the requests to the NextFUR API by using some http request libraries or simply using nodefetch.

let token = "<YOUR API TOKEN>" //Get this at your user panel, under the development section
let userID = "<THE ID OF THE USER>"

let response = await fetch('https://api.nextfur.net/v2/users/get/id/' + userID, {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
        action: "get",
        authorization: token
    })
})

let data = response.json() //Get the user's information

You can see more about user fetching in the users handling section:

😳Fetch Types

Last updated