module BettyResource
  class Api
    include HTTParty

    base_uri "#{BettyResource.config.host}/api"
    format :json
    basic_auth BettyResource.config.user, BettyResource.config.password

  end
end
module BettyResource
  class Api
    include HTTParty

    base_uri "#{BettyResource.config.host}/api"
    format :json
    basic_auth BettyResource.config.user, BettyResource.config.password
    query_string_normalizer proc{|query|
      query.to_json
    }
  end
end
Normalize query strings as json
Normalize query strings as json