Beispiel #1
0
#print(authentication.authorization_url)

# authentication.authorization_code = code
# authentication.state = state
# #
# print(authentication.get_access_token())

#sys.exit(0)
authentication.token = AccessToken(
    access_token=
    'AQXRw7aKOIQpyDS1CqhceHUGssNbPwG-FTH3985dW7Qc0-e-_lqZErrGnntJPzw_KWeH-2V7bzH01UkC1wV_I4qQRJfcXG2MDo38yVCWjtCkvCgKrCsqZIhiBmlzGr0AWtUgOiRV_gy7nMzlAzCEv0R64CRrw1A7jaiRgdCT8sznO6MlC__psorX5xECT45ORyQTieFfE1M2bH9wKgut13Ng9y2WrN0Ja6eeP2ADSlxMUbg04RjAd7z4VndqlFFQv7hddOh3JhOToUCmIcxoWH5qaFOuZ6rgJ27qcZeSTPpPcdlg8ISjtkA4uU85WdavE9wTJ2ElV4eJBYZA5n6NKdTPSie9Lg',
    expires_in=5183999)
app = LinkedInApplication(authentication=authentication)
result = app.search_company(selectors=[{
    'companies': ['name', 'universal-name', 'website-url']
}],
                            params={'keywords': 'apple microsoft'})

#result = app.search_profile(selectors=[{'people': ['first-name', 'last-name']}], params={'keywords': 'apple microsoft'})

#app

#result = app.get_companies()

print(result)

# authentication.authorization_code = code
# authentication.state = state
# print(authentication.get_access_token())

#print(authentication.authorization_url)