ruby cookbookã«è¼ã£ã¦ãã®ã§ä½¿ã£ã¦è¦ããã¨ã«ãã¾ããã 以ä¸ã¯ã½ã¼ã¹.ä¸é¨å¤æ´ãã¦ããã¾ãï¼æååæä½ã®é¨å + ã®é¨åãã<< ã«å¤æ´ãï¼ require 'open-uri' require 'rexml/document' require 'cgi' FLICKR_API_KEY = 'your api key' def flickr_call(method_name, arg_map={}.freeze) args = arg_map.collect {|k,v| CGI.escape(k) << '=' << CGI.escape(v)}.join('&') url = "http://www.flickr.com/services/rest/?api_key=%s&method=%s&%s" % [FLICKR_API_KEY, method_name, args]
{{#tags}}- {{label}}
{{/tags}}