Question Error code with api meaningcloud

cmansilla

New member
Joined
May 16, 2016
Messages
2
Programming Experience
Beginner
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
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
<html><head>
<title>406 Not Acceptable</title>
</head><body>
<h1>Not Acceptable</h1>
<p>An appropriate representation of the requested resource /class-1.1 could not be found on this server.</p>


I write them but still dont have an answer, if someone has any idea of what im doing wrong please inform.
Thanks
C.
 

Attachments

  • ErrorMsgApi1.png
    ErrorMsgApi1.png
    8.1 KB · Views: 85
Back
Top Bottom