api - Using RestSharp to get image response from Cloud Sight C# -
i want call api called cloud sight provides image recognition.
i want response describes image url of image provided api cloud sight.
this code have far
var client = new restclient ("http://api.cloudsightapi.com/image_request"); var request = new restrequest("http://cdn.head-fi.org/c/c8/1000x500px-c8c39533_beats-by-dre-studio.jpg", method.post); request.addheader ("cloudsight", [api key here]); irestresponse response = client.execute(request); var content = response.content; console.writeline (content);
i error says
{"status":"404","error":"not found"}
the documentation cloud sight not insightful each individual language, unsure if calling correctly, particularly, addheader part.
it may error not waiting response. code executes , api example cloud sight provides on website takes 10-15 seconds.
any ideas how go getting api working restsharp?
just guess, have tried method.get instead of method.post? it'd highly unusual fetch image via post.
Comments
Post a Comment