Last active
June 25, 2016 09:18
-
-
Save takoeight0821/c70e66a4deda0bc85bb5 to your computer and use it in GitHub Desktop.
lhtrpgをCommon Lispでいじる
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
(mapc #'ql:quickload | |
(list :drakma :jonathan)) | |
(setq drakma:*drakma-default-external-format* :utf-8) | |
(pushnew '("application" . "json") drakma:*text-content-types* :test #'equal) | |
(defun dl-lhz (label) | |
(jonathan:parse (drakma:http-request (format nil "http://lhrpg.com/lhz/api/~a.json" label)) :as :hash-table)) | |
(defparameter *skills* (dl-lhz "skills")) | |
(defparameter *items* (dl-lhz "items")) | |
(defparameter *prefixed-effects* (dl-lhz "prefixed_effects")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment