{"detail": [ {"loc": ["query","text" ],"msg":"ensure this value has at least 1 characters","type":"value_error.any_str.min_length","ctx": {"limit_value":1 } } ]}
Sample Request
curl --location --request POST 'https://api.iapp.co.th/toxic-classification/predict?text=' \--header 'apikey: {YOUR API KEY}'
Unirest.setTimeouts(0,0);HttpResponse<String> response =Unirest.post("https://api.iapp.co.th/toxic-classification/predict?text=").header("apikey","{YOUR API KEY}").asString();
var request =require('request');var options = {'method':'POST','url':'https://api.iapp.co.th/toxic-classification/predict?text=','headers': {'apikey':'{YOUR API KEY}' }};request(options,function (error, response) {if (error) thrownewError(error);console.log(response.body);});