node.js - Linkedin API Company Updates not returning 50 recents updates -
i trying fetch companies updates api https://developer.linkedin.com/docs/company-pages#company_updates
i use node.js linkedin-js package module wrapper. found got 5 posts company (id=3487133). shown in page, got more 5 updates. how can posts updates ? thanks.
here code
var linkedin_client = require('linkedin-js')(appid, appsecret, url_callback) var cid = 3487133; var param = { token: { oauth_token_secret: <token_secret>, oauth_token: <token> }, count: 50 } //post linkedin_client.apicall('get', '/companies/' + cid + '/updates', param, function(error, result) { console.log(result) });
there nothing wrong code.
from https://developer.linkedin.com/docs/company-pages#company_updates can find that
only recent 50 updates events of type status-update returned. other event types, request return updates within past 20 days, or 250 total updates - whichever comes first.
using linkedin console (https://api.linkedin.com/v1/companies/3487133/updates) fo getting updates company, giving same 5 posts. rest of posts in page 20 days + older.