Unity Screening API
...
Screening
Endpoint accepts a result and returns a success or error response
1 min
code examples curl location 'https //orgname datacenter thecloudconnectors io/api/unity/results' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "requesterrefid" "" }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "requesterrefid" "" }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //orgname datacenter thecloudconnectors io/api/unity/results", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));import requests import json url = "https //orgname datacenter thecloudconnectors io/api/unity/results" payload = json dumps({ "requesterrefid" "" }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) var options = new restclientoptions("https //orgname datacenter thecloudconnectors io") { maxtimeout = 1, }; var client = new restclient(options); var request = new restrequest("/api/unity/results", method post); request addheader("accept", "application/json"); request addheader("content type", "application/json"); var body = @"{" + "\n" + @" ""requesterrefid"" """"" + "\n" + @"}"; request addstringbody(body, dataformat json); restresponse response = await client executeasync(request); console writeline(response content);okhttpclient client = new okhttpclient() newbuilder() build(); mediatype mediatype = mediatype parse("application/json"); requestbody body = requestbody create(mediatype, "{\n \\"requesterrefid\\" \\"\\"\n}"); request request = new request builder() url("https //orgname datacenter thecloudconnectors io/api/unity/results") method("post", body) addheader("accept", "application/json") addheader("content type", "application/json") build(); response response = client newcall(request) execute(); responses // ok // bad request { "errorcode" "", "errormessage" "", "errordescription" "", "errorsuggestedaction" "" }// method not allowed // vendor server unavailable