Skip to content

Instantly share code, notes, and snippets.

@nakamura-akifumi
Created April 25, 2012 06:09
Show Gist options
  • Save nakamura-akifumi/2487017 to your computer and use it in GitHub Desktop.
Save nakamura-akifumi/2487017 to your computer and use it in GitHub Desktop.
hookの取得
#-*- encoding: utf-8 -*-
require 'net/http'
https = Net::HTTP.new('api.github.com', 443)
https.use_ssl = true
https.ca_file = '/usr/share/ssl/cert.pem'
https.verify_mode = OpenSSL::SSL::VERIFY_NONE
https.verify_depth = 5
https.start { |w|
response = w.get('/repos/nakamura-akifumi/enju_nakamura/hooks')
puts response
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment