I'm building a website using the LinkedIn Oauth api so that my visitors can log in using Linkedin. This works perfectly fine, but I now want to give people that are administrator for a company registered with Linkedin. When people log in I can get different fields of info about them using the following:
people/~:(firstName,lastName,positions)
which gives me this:
{
u'firstName': u'John',
u'lastName': u'Doe',
u'positions': {
u'_total': 1,
u'values': [
{
u'startDate': {
u'year': 2012
},
u'title': u'FreelanceProgrammer',
u'summary': u'This is the summary of the company',
u'isCurrent': True,
u'id': 123456789
u'company': {
u'industry': u'InformationTechnologyandServices',
u'size': u'MyselfOnly',
u'type': u'PublicCompany',
u'id': 1234567,
u'name': u'MyCompany'
},
}
]
}
}
Unfortunately, this doesn't tell me anything about whether they are admins for their company on Linkedin.
Does anybody know if I can find out if the user is an admin for the company they work with? Or is there maybe way to get a list of the admins for the company? All tips are welcome!
There is an API call that you can make that tells you this, documented on LinkedIn's developer website at: https://developer.linkedin.com/docs/company-pages#is_admin
Additionally, you can get a list of all companies that the member is an administrator of with this call: https://developer.linkedin.com/docs/company-pages#list_companies