Sha256: 67226eea36b66b0738e9558ed8eda2905f139ad4f0d98629c5a757526e3d3d31
Contents?: true
Size: 660 Bytes
Versions: 2
Compression:
Stored size: 660 Bytes
Contents
module SodaXmlTeam require 'httparty' require 'nokogiri' class Client include HTTParty debug_output $stderr def initialize(username, password) @auth = {:username => username, :password => password} end def get_listing(options={}) response = HTTParty.get(SodaXmlTeam::Address.build("get_listing", options), { :basic_auth => @auth, :verify => false }) Nokogiri::XML(response.body) end def get_document(options={}) response = HTTParty.get(SodaXmlTeam::Address.build("get_document", options), { :basic_auth => @auth, :verify => false }) Nokogiri::XML(response.body) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
soda_xml_team-1.0.6 | lib/soda_xml_team/client.rb |
soda_xml_team-1.0.5 | lib/soda_xml_team/client.rb |