Tuesday, 10 September 2013

LinkedIn Company Insider Plugin - no results in New Hire/Position Changes tab

LinkedIn Company Insider Plugin - no results in New Hire/Position Changes tab

We need to be able to view entries in these tabs with the Company Insider
Plugin (generated via
https://developer.linkedin.com/plugins/company-insider-plugin). Is there
any reason that it always returns 0 results, whether done by
implementation on a static HTML page, or through the Company Insider
Plugin code generator?
I have read somewhere that LinkedIn does not ever show you someone who is
more than 3 degrees away from you in terms of connection - does this apply
for entries in New Hire and Position Change in the Company Insider Plugin
as well?
Currently I'm trying to write a custom plugin, using the LinkedIn
Javascript API, but I am still getting zero results on both New Hires and
Position Changes. These are the codes I am using:
var url = '/companies/{companyId}/updates?event-type=new-hire';
IN.API.Raw()
.url(url)
.method('GET')
.body(JSON.stringify(body))
.result(function (result) {
console.log(result);
})
.error(function (error) {
console.log(error);
});
var url = '/companies/{companyId}/updates?event-type=position-change';
IN.API.Raw()
.url(url)
.method('GET')
.body(JSON.stringify(body))
.result(function (result) {
console.log(result);
})
.error(function (error) {
console.log(error);
});
Another question I have is regarding the validity of an access token
generated via the Javascript API. I am able to access the access token
using the following code:
IN.ENV.auth.auth_token
However, when I attempt to use it as part of an AJAX request to a LinkedIn
REST API URL, I end up getting a 401 Unauthorized - Invalid access token
error. An example of the URL I would try is:
var data = $.ajax({
type: 'GET',
data: { oauth2_access_token: IN.ENV.auth.oauth_token,
event-type: new-hire },
url: 'https://api.linkedin.com/v1/companies/1636/updates'
This is a business critical requirement, would most appreciate some light
on this. Thanks.

No comments:

Post a Comment