Skip to content

Instantly share code, notes, and snippets.

@ahmdrefat
Created October 21, 2012 08:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmdrefat/3926313 to your computer and use it in GitHub Desktop.
Save ahmdrefat/3926313 to your computer and use it in GitHub Desktop.
def get_client
linkedin_oauth_setting = LinkedinOauthSetting.find_by_user_id(current_user.id)
client = LinkedIn::Client.new('iv6uehul4g5m', 'wtMfG2MbFerSULTC', @@config)
client.authorize_from_access(linkedin_oauth_setting.atoken, linkedin_oauth_setting.asecret)
client
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment