Plugger AI
Search
K
Comment on page

NodeJS

const axios = require('axios');
const payload = {
itemUuid: 'ITEM UUID',
text: 'TEXT',
apiKey: 'API KEY',
rawResponse: true,
configuration: {
confidence: 90,
labels: []
}
};
axios.post('https://run.plugger.ai/', payload)
.then(response => {
const result = response.data;
// Use the result here
console.log(result);
})
.catch(error => {
console.error(error);
});