Reputation: 1108
I already have oAuth working with the Linked API. The dance is working nicely. But now I have the Linkedin data displaying correctly on my site I'm now thinking about throttle limits and load speeds.
I don't want the site to keep requesting throughout the day. It would be better if I could run a script via cron every 6 hours to make the requests all at once. (There will be less than 3000 requests each time.) This will make my pages load faster and my site wont have to wait for the API callbacks in order to display the full page.
Headache = When using the Linkedin API all calls have to be authenticated. Users do this manually once per session but how can I script this process? Is there a direct way to send my? details to linkedin to autorize before the script carries on making requests?
https://developer.linkedin.com/documents/authentication
My setup uses:
Upvotes: 3
Views: 2338
Reputation: 4019
Why do the calls need to be authenticated once per session? I haven't seen anything in the LinkedIn API to suggest that you need to authenticate more than once.
With OAuth, it should only need to be authorized once, you store the Access Token and then you use the stored tokens from then on to access the data.
Upvotes: 3