Skip to content

Instantly share code, notes, and snippets.

@juno
juno / github-api-practice.rb
Created January 22, 2011 12:49
w/HTTParty
require 'json'
require 'httparty'
class Github
include HTTParty
base_uri 'http://github.com/api/v2/json'
# @param [String] username GitHub username
# @param [String] password Password or API token
def initialize(username, password)