Sha256: 71aa4d4b7ec29f7534ddff1a37a4b2156d9a8bb76058587c17b7d36fcefc18df
Contents?: true
Size: 556 Bytes
Versions: 2
Compression:
Stored size: 556 Bytes
Contents
module CareerBuilder module Requests class Authentication < Request def perform response = perform_request("BeginSessionV2", "<Email>#{options[:email]}</Email><Password>#{options[:password]}</Password>") packet = Nokogiri::XML(response) if session_token = packet.search("//SessionToken") session_token_text = session_token.text if session_token_text == "Invalid" return nil else return session_token_text end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
career_builder-0.1.1 | lib/career_builder/requests/authentication.rb |
career_builder-0.1.0 | lib/career_builder/requests/authentication.rb |