Created
February 5, 2015 17:35
-
-
Save joe11051105/45d9abb3c2c3f2ab525d to your computer and use it in GitHub Desktop.
Get github repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 先安裝 gem | |
gem install httpclient | |
require "httpclient" | |
request = HTTPClient.new | |
request.set_basic_auth("https://api.github.com/user", "joe11051105", "password") | |
request.get "http://api.github.com/joe11051105/repos" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment