[RSS Feed/News] API Get requests working but not Post

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
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

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom