Hi, i try to use a categorized api from meaningcloud site for C# project, but i receive the error 406, i even used the example they publish on their website with the same error, anyone has some experiencie with this api?
Code
C#
protected void Button1_Click(object sender, EventArgs e)
{
var client = new RestClient("http://api.meaningcloud.com/class-1.1");
var request = new RestRequest(Method.POST);
request.AddHeader("content-type", "application/x-www-form-urlencoded");
request.AddParameter("application/x-www-form-urlencoded", "key=MY_KEY_VALUE1b&txt=PRUEBA&model=IPTC_es", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
txtRespuesta.Text = response.Content;
}The msg error
Not Acceptable
An appropriate representation of the requested resource /class-1.1 could not be found on this server.
I write them but still dont have an answer, if someone has any idea of what im doing wrong please inform.
Thanks
Answers
Know the answer? Post it. Somebody with the same question will find it here.