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:
http://www.linkedin.com/v1/groups/000000:(num-members)
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?
- Log in to post comments
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.
https://developer.linkedin.com/documents/oauth-overview
Hope that helps,
Kamyar