Skip to content

Instantly share code, notes, and snippets.

@mizutaki
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mizutaki/99c2991b3aad69a6f456 to your computer and use it in GitHub Desktop.
Save mizutaki/99c2991b3aad69a6f456 to your computer and use it in GitHub Desktop.
cl = Octokit::Client.new(access_token: config['access_token'])
#gistリストを取得
gists = cl.gists("mizutaki")
gists.each do |gist|
file = Hash.new
gist.files.each {|k, v| file = v}
puts "#{file.filename}"
puts "#{gist.user.login}"
puts "#{gist.description}"
puts "#{gist.gist.html_url}"
puts "#{gist.public}"
puts "#{file.language}"
puts "#{gist.id}"
puts "#{gist.created_at}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment