public
Created

  • Download Gist
get_client.rb
Ruby
1 2 3 4 5 6
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.