Skip to content

Instantly share code, notes, and snippets.

@wlmcewen
Created August 12, 2016 20:30
Show Gist options
  • Save wlmcewen/77cd2a109e2a9cdab82e5a21d840fc48 to your computer and use it in GitHub Desktop.
Save wlmcewen/77cd2a109e2a9cdab82e5a21d840fc48 to your computer and use it in GitHub Desktop.
net_json
require 'uri'
require 'net/http'
require 'net_json'
class N
include NetJson
end
uri = URI.parse("http://internal.flexmls.com/flexiapi/prefs/auto_inbox_exstatus")
request = Net::HTTP::Get.new(uri)
request.basic_auth("flexiapi_client", "fr43ksh0w_b0wz3r")
request["X_flexiapi_user_agent"] = "WadeTest"
request["X-Flexiapi-Userid"] = "20140402194227539412000000"
n = N.new
n.net_json request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment