åºå³¶çã§è¡ãããã LTé§åéçº02 ã§çºè¡¨ããè³æã§ãã ã½ã¼ã¹ã³ã¼ã/ãµã³ãã« : https://github.com/kamera25/RubyAnalysis ç§ã®Twitter : https://twitter.com/csc_kamera25 LTé§åéçº02 : http://goo.gl/rV6qJ7Read less
HTTPãªã¯ã¨ã¹ãã§JSONãè¿ã£ã¦ããAPIãå¦çããã¨ãããããã±ã¼ã¹ã ãã©ãæå¤ã¨æ¸ãæ¹å¿ããã®ã§ã¡ã¢ require 'net/http' require 'uri' require 'json' uri = URI.parse('http://www.example.com/sample.json') json = Net::HTTP.get(uri) result = JSON.parse(json) puts result require 'net/http' require 'uri' require 'json' def get_json(location, limit = 10) raise ArgumentError, 'too many HTTP redirects' if limit == 0 uri = URI.parse(location) begin res
Facebookã®GraphAPIã®ä½¿ãæ¹ã¯ãã®è¾ºãã«ããããè¼ã£ã¦ãã https://developers.facebook.com/docs/reference/api/ ä¾ãã°é³æ¥½ãã¨ã£ã¦ããã¨ããã { "data": [ { "name": "Michael Schenker Group / Temple Of Rock", "category": "Musician/band", "id": "249184148459561", "created_time": "2012-04-25T11:16:13+0000" }, { "name": "Sarah Brightman", "category": "Musician/band", "id": "301956239856782", "created_time": "2012-04-10T09:39:05+0000" }, {
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}