Skip to content

Instantly share code, notes, and snippets.

@steventux
Created April 9, 2014 14:57
Show Gist options
  • Save steventux/10279962 to your computer and use it in GitHub Desktop.
Save steventux/10279962 to your computer and use it in GitHub Desktop.
Quickly query the Github API with Ruby for ...stuff
require 'open-uri'
require 'json'
buff = ''
open('https://api.github.com/repos/alphagov/smart-answers/pulls') { |f| f.each_line { |line| buff << line } }
pulls = JSON.parse(buff)
puts pulls.first['user']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment