Commits

Tim Tomes committed ca8342d

fixed a minor bug in the linkedin_auth module.

Comments (0)

Files changed (1)

modules/contacts/linkedin_auth.py

             raise Exception(self.error('Error: Invalid Response %s.' % resp['status']))
         request_token = dict(urlparse.parse_qsl(content))
         base_authorize_url = 'https://api.linkedin.com/uas/oauth/authorize'
-        authorize_url = "%s?oauth_token=%s" % (base_authorize_url, request_token['oauth_token'])
+        authorize_url = "%s?oauth_token=%s&scope=%s" % (base_authorize_url, request_token['oauth_token'], 'r_basicprofile+r_network')
         self.output('Go to the following link in your browser and enter the pin below:') 
         self.output(authorize_url)
         w = webbrowser.get()