authentication = linkedin.LinkedInDeveloperAuthentication(CONSUMER_KEY,
    CONSUMER_SECRET, USER_TOKEN, USER_SECRET, RETURN_URL, list(linkedin.
    PERMISSIONS.enums.values()))
application = linkedin.LinkedInApplication(authentication)
g = application.get_profile()
print(g)
How to use linkedin API with python