I'm writing a widget solely in JavaScript and trying to avoid any server-side scripting.
Thanks.
There are no pre-built Company Search methods for the JavaScript API. You'd need to make the company search request via the IN.API.Raw()
method, something like:
IN.API.Raw('/company-search?keywords=LinkedIn')
.result(function(value) {
alert(JSON.stringify(value));
})
.error(function(error) {
alert(JSON.stringify(error));
});