Created
September 28, 2011 11:33
-
-
Save azusa/1247725 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'open-uri' | |
require 'json' | |
uri="http://api.atnd.org/events/?format=json&event_id=" + ARGV[0] | |
json_string="" | |
open(uri){|f| | |
json_string=f.read | |
} | |
json=JSON.parse(json_string) | |
event=json["events"][0] | |
puts(json["events"][0]["started_at"].to_s + "〜" + json["events"][0]["ended_at"].to_s) | |
puts("会場:" + event["address"]+ event["place"]) | |
puts("定員:" + event["limit"].to_s) | |
puts ("お申し込みは、ATNDからお願いします。" + event["event_url"]) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment