Skip to content

Instantly share code, notes, and snippets.

@daneb
Created July 22, 2016 06:27
Show Gist options
  • Save daneb/6f5553fec75d90d66fec9045c6daaca0 to your computer and use it in GitHub Desktop.
Save daneb/6f5553fec75d90d66fec9045c6daaca0 to your computer and use it in GitHub Desktop.
PRY
def hello
binding.pry
@access_id = "1234"
#uri = URI.parse('http://127.0.0.1:9292')
uri = URI.parse('http://127.0.0.1:9393/ping')
@request = Net::HTTP::Get.new(uri.request_uri)
@request.add_field("Authorization", headers)
@signed_request = ApiAuthClient.signed_request(@request, @access_id)
http = Net::HTTP.new(uri.host, uri.port)
response = http.request(@signed_request)
@banner = response.body
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment