bannerColor WARNING_YELLOW templateName poodleSSLVulnerability

Retrieve LinkedIn information from a script (script-login)

3 posts / 0 new
Last post
Joined: 2012-01-23
Jun 14, 2012
Retrieve LinkedIn information from a script (script-login)

For a project I need to know the amount of users in a particular LinkedIn Group.

First attempt was to get the number with an api call:

For this call it's neccesary to login with oauth, but I don't want each visitor to authorise with LinkedIn just for retrieving one number.
So is there a possibility to create a script (php) who automaticly logs in (on behalf of 1 user) and get this group value?

Kamyar Mohager's picture
LinkedIn Employee
Joined: 2012-04-04
Jun 14, 2012

Hi Nick,

I think you'll easily accomplish what you need by using OAuth. The reason we leverage OAuth is because you're able to store a token and secret indefinitely so that you don't need to log in each time.

If you'd rather not have each visitor log in the first time they use your application, why not create a LinkedIn account dedicated to your application that you can use for authentication? You can hard code the token and secret and use that since it won't expire.

Hope that helps,

Joined: 2012-01-23
Jun 15, 2012

Thanks, I didn't know the keys won't expire. So I simulate a login with my application-account and store the token and secret in my script.