XenForo API Get requests working but not Post

B

bookworm3000

Guest
Hello I am trying to update my profile via the API while using Node.js with Axios.

Here is my code, the header seems to be working just find and Axios objects seems to be creating properly.
const axios = require('axios');
const qs = require('qs');

const website = axios.create({
baseURL: 'http://website.com/api/',
headers: {
'XF-Api-Key': 'apikey',
'Content-Type': 'application/x-www-form-urlencoded',
'XF-Api-User': '1',
}
});
...

Read more

Continue reading...