Reputation: 196
Trying to get autocomplete to work in my app when searching for companies. In my case i am searching for "ska" Three (3) diffenrent scenarios:
1 - Go to https://www.linkedin.com/ta/federator?types=company&query=ska in your browser. Result: You get json response with data.
2. Try calling it via javascript Front-End
$("#birds").autocomplete({
minLength: 3,
source: function (request, response) {
// request.term is the term searched for.
// response is the callback function you must call to update the autocomplete's
// suggestion list.
$.ajax({
url: "https://www.linkedin.com/ta/federator?types=company",
data: { query: request.term },
dataType: "json",
success: response,
error: function () {
response([]);
}
});
}
});
Result: Null
Scenario 3:
Make a call to the LinkedIn API with your APi and secret key. API Call the "company-search?keywords={your-partial-word}" Result: The searchhits is nothing like the autocomplete. The autocomplete suggestions are much better.
Suggestions on how to build a autocomlete for LinkedIn when searching for comapnies only.
As mentioned there are two different ways.
Upvotes: 0
Views: 1260
Reputation: 314
I think a good way to do this is:
Upvotes: 0